Exercise 2.8.7: tostring for flowers

5 points

let's go!

complete the tostring method to the flower class. remember that the format for a tostring method is:

public string tostring()
the tostring method should be formatted so that the following code

flower foxglove = new flower("foxglove", "red", "digitalis", "obscura");
system.out.println(foxglove);
prints out

red foxglove (digitalis obscura)



Answer :

Other Questions