This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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