class Name { public Name(String first, String last) // constructor { firstName = first; lastName = last; } // end of constructor public String getInitials() { String s; // will hold the initials s = firstName.substring(0,1); s = s.concat("."); s = s.concat(lastName.substring(0,1)); s = s.concat("."); return s; } // end of getInitials public String getLastFirst() { // return title.concat(" ").concat(lastName).concat(" ").concat(firstName); return lastName.concat(" ").concat(firstName); } // end of getLastFirst public String getFirstLast() { // return title.concat(" ").concat(firstName).concat(" ").concat(lastName); return firstName.concat(" ").concat(lastName); } // end of getFirstLast public void setTitle(String newTitle) { title = newTitle; } // end of setTitle public String getTitle() { return title; } // end of getTitle // instances variables when applicable private String firstName; private String lastName; private String title; } // end of Name