Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+16 votes

What return type do I use instead of void at the top of a method to have my method return a string instead of an int or a double?

asked in CSC211_Winter2018 by (1 point)

1 Answer

+14 votes

To return a String, the return type is String (instead of using int or double as we have done most often).

answered by (1 point)
...