Syntax Practice 7b: toString and Returning Values

Score: 0 / 5.0


Exercises

0 / 1.0

Write a function in Java that implements the following logic: Given a string name, e.g. "Bob", return a greeting of the form "Hello...

0 / 1.0

Write a function in Java that implements the following logic: Given a string, if the string begins with "red" or "blue" return that color...