Question: im coding with java and this code is my president code 1 class President { String firstName; String lastName; String academicLevel; OU ge //constructor President()

1 class President { String firstName; String lastName; String academicLevel; OU ge //constructor President() firstName="7"; lastName="?"; academiclevel="7": 16e //Accesser, methods public String getFirstName() { return firstName; public String getLastName() { return lastName; public String getAcademicLevel() { return academicLevel; //mutator methods 30e public void setFirstName(String fname) { firstName=fname; 34e public void setLastName(String name) { lastName=lname; 386 public void setAcademicLevel(String level){ academicLevel=level; a42epublic String tostring(){ return this.getLastName()+","+this.getFirstName()+"("+this.getAcademicLevel()+")"; 37 39 41 43 46 47 }//end of President class 48 49 850 public class Main 51 52e public static void main(String[] args) { President obj=new President(); 54 obj. setFirstName("Bob"); 55 obj.setLastName("Water"); obj.setAcademicLevel("Senior"); System.out.println(obj); 58 59 ) The Club co describes a club. It has the following us clubName String The name of the Club The r e when the club university String Current resident The following cor should be provided to in each a t This constructor i s the value of stond the valer o g inte to dance of red wing thei puble Club r of the end puble string getuban publie internes te stripetersity publie President getCurrent President) The following modifier a d hd be provided to change the public void clarime) Publle void set berorbert Number) Public void set university University) public void setCurrent president (string First Name, string lasta. Sing some Level) publie string totring The loString) method contruct a string of the following format Inclub Nat acing Clubin Number of Membraries University.lt Arizona State Universityin President: water. Bob Seniorinin
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
