Course Solutions Uncategorized (Solved) : Last Lines Code Remove Word True Printing Would Like 91 1 Print Word True Code Fails Run Q34547936 . . . .

(Solved) : Last Lines Code Remove Word True Printing Would Like 91 1 Print Word True Code Fails Run Q34547936 . . . .

 

In the last lines of code, how do I remove the word true fromprinting? I would like the 9.1 and1 to print but not the word true. The code fails to run without it. Thank you.

This is the line : StudentAthlete sa =new StudentAthlete(“Viart”, “Kohli”, “Delhi”, 28, “V-1″, true, 9.1,”Cricket”, 1);

System.out.println(sa.getInfo());

class Person {

private String firstName;

private String lastname;

private String homeTown;

private int age;

public String getFirstName() {

return firstName;

}

public void setFirstName(String aFirstName) {

firstName = aFirstName;

}

public String getLastname() {

return lastname;

}

public void setLastname(String aLastname) {

lastname = aLastname;

}

public String getHomeTown() {

return homeTown;

}

public void setHomeTown(String aHomeTown) {

homeTown = aHomeTown;

}

public int getAge() {

return age;

}

public void setAge(int aAge) {

age =

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post