This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Assignment Problem" Watch "Java Assignment Problem" New topic

Java Assignment Problem

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37953
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

Joined: Oct 13, 2005
Posts: 37953
Sorry, I was mistaken about displaying the result, because I missed the print statements inside the loop.
It is sorta covered in the JavaRanch Style Guide.
subject: Java Assignment Problem
Similar Threads
please help me with Recursion
help with assignment
Percentage issue
Fibonacci Sequence Problem
Inheritance error?