| Author |
this code gives a run time error and i am stuck!!!
|
Ammar Salem
Ranch Hand
Joined: Dec 29, 2007
Posts: 60
|
|
the error is : Exception in thread "main" java.lang.arrayIndexOutOfBoundException:0 at Candidate.main(Candidate.java:34)
|
****************************<br />For Some Dreams.....<br />One Lifetime Is Not Enough.<br />****************************
|
 |
praveen Shangunathan
Ranch Hand
Joined: Sep 06, 2005
Posts: 64
|
|
i ran it and did not get any error. Did you give arguments when you run it ?
|
 |
Ammar Salem
Ranch Hand
Joined: Dec 29, 2007
Posts: 60
|
|
No i did not give any arguments OPPs!!! Sorry thank you .
|
 |
Bill Shirley
Ranch Hand
Joined: Nov 08, 2007
Posts: 457
|
|
ergo, the code needs fixing:
|
Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
|
 |
Ammar Salem
Ranch Hand
Joined: Dec 29, 2007
Posts: 60
|
|
|
thank you very much Bill, I appreciate your suggestion.
|
 |
 |
|
|
subject: this code gives a run time error and i am stuck!!!
|
|
|