This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
so how about this message: The method "java.lang.String getCoinName(int coinName);" must contain a return statement with an expression compatible with type "String". I am creating a method with an original int value from the main method and it must return a string. how can i do that?
[ November 03, 2004: Message edited by: gelle cerda ] [ November 03, 2004: Message edited by: gelle cerda ]
To an outsider reading this thread, my first post above must seem very odd. I should explain that the poster asked a questiont, and when I answered it aobove, edited his original message and replaced it with a completely different question!
In any case, your method could look something like