Yahoo Clever wird am 4. Mai 2021 (Eastern Time, Zeitzone US-Ostküste) eingestellt. Ab dem 20. April 2021 (Eastern Time) ist die Website von Yahoo Clever nur noch im reinen Lesemodus verfügbar. Andere Yahoo Produkte oder Dienste oder Ihr Yahoo Account sind von diesen Änderungen nicht betroffen. Auf dieser Hilfeseite finden Sie weitere Informationen zur Einstellung von Yahoo Clever und dazu, wie Sie Ihre Daten herunterladen.
Java programming?
its telling me to do this.
Define accessor (“getter”) methods called getFunctionChoice and getDescription that return the values of the corresponding fields. The method getDescription takes an integer and returns the description corresponding to the integer. Define the toString() method, which returns the value of the “description” field.
and this is what I have.
public String getDescription()
{
return description;
}
public String getFunctionChoice()
{
return description;
}
public String toString()
{
return description;
}
Did I do it right? I'm not sure.
1 Antwort
- ?Lv 7vor 5 Jahren
It doesn't look right. Your instructions say "The method getDescription takes an integer and returns the description corresponding to the integer." I don't see an integer anywhere. And I doubt that getFunctionChoice() is supposed to return the description.