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

+34 votes

For the helper method in Hannaldous, are we able to change the return type from String to boolean? I do not see the point in returning "y" and "n" and I think it just further complicates what the method is doing.

asked in CSC285_Fall2018 by (1 point)

1 Answer

+17 votes

Absolutely. Returning "y" or "n" is horrible coding style!

answered by (508 points)
...