/** This class creates a greeter object with its own greeting @author Jeff Smith */ public class ParametrizedGreeter { // the greeting to be issued by the greet method private String greeting; /** Constructs a ParametrizedGreeter for a user with a given greeting @param s the greeting */ public ParametrizedGreeter(String s) { greeting = s; } /** Greets the user for this PersonalizedGreeter by printing its greeting to the console */ public void greet() { System.out.println(greeting); } }