This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java Assignment Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Assignment Problem" Watch "Java Assignment Problem" New topic
Author

Java Assignment Problem

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39044
    
  23
Welcome to the Ranch , srinivas chintala

Didn’t you see this at the top of the forum?
We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.
You are doing TL no favours by providing a complete solution; in fact it will harm his learning because he doesn’t have to understand the problem. Don’t be annoyed, but I have altered the solution.
By the way: the original solution would not have worked because there was no way to record or display the result.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39044
    
  23
Sorry, I was mistaken about displaying the result, because I missed the print statements inside the loop.
 
GeeCON Prague 2014
 
subject: Java Assignment Problem