/** * @author Gaspar Guerra * User.java * Project Assignment 4 */ public class User { //Variable will hold the User's first name private String firstName; //Variable will hold the User's last name private String lastName; public User( String first, String last ){ //Initializes the User to the values given firstName = first; lastName = last; } /* * returns the first name of the user */ public String firstName( ){ return firstName; } /* * returns the last name of the user */ public String lastName( ){ return lastName; } /* * Returns the full name of the User */ public String fullName( ){ return firstName( ) + " " + lastName( ); } }