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