View Single Post
Join Date: Aug 2007
Posts: 774
Reputation: darkagn has a spectacular aura about darkagn has a spectacular aura about darkagn has a spectacular aura about 
Solved Threads: 105
darkagn's Avatar
darkagn darkagn is offline Offline
Master Poster

Re: Interger Arrays---Need Help!

 
0
  #3
Nov 15th, 2007
Also, can I suggest putting a few extra println statements in while you are trying to debug your program. Try something like
  1. num = scan.nextInt();
  2. System.out.println("### num = "+num+(" ###");

This will confirm whether you are reading the correct value. Put this sort of statement after every input and don't forget to display your output so you can see the result. This will help to decifer what is happening in your program. Just don't forget to comment them all out before handing in your final assignment!

Cheers,

darkagn
Reply With Quote