- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
5 Posted Topics
Hello lrolsto1. You need to consider the values your variables are getting in every iteration through the while loop. The problem is, that a variable is taking null value in some iteration of the while loop, thus resulting in a NullPointerException being thrown. So you need to check the values …
Indeed there must be the problem in using System.out.println instead of System.out.print in the inner loop.
Dear, initialization means giving some starting value to the variables you declare. If we don't initialize variables, they may contain any unpredictable value. This often leads to wrong results. So if your compiler is reporting that your variable is uninitialised, just initialise them with some starting value.
sun tutorials are good. It will be good to spend some hours on studying about arrays, classes etc. instead of directly attempting to somehow complete the assignment. Then you may visit this website (or any similar) [url]http://www.exampledepot.com/[/url] for code examples. Best of luck.
The End.
BhagatS