wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes this code gives a run time error and i am stuck!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "this code gives a run time error and i am stuck!!!" Watch "this code gives a run time error and i am stuck!!!" New topic
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: 65
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: this code gives a run time error and i am stuck!!!
 
Similar Threads
code
ArrayIndexOutOfBoundsException error
Class conversion to string
Applet doesn't show up with IE
Class not working?