2
Contributors
9
Replies
10
Views
7 Years
Discussion Span
Last Post by kdmuk10
0

sorry to bother you again.

I got the project>properties>run and inputed two integers.
When i run the program from the IDE window, i still get 'Caught ArrayIndexOutOfBoundsException: 0'. what am i missing?

0

Make sure you are debugging the project, not an individual file. Those are two different options in the IDE and those arguments will only be used with the project.

0

here is what i got after a little attempt

Exception in thread "main" java.lang.NumberFormatException: For input string: "[5,"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
at java.lang.Double.valueOf(Double.java:475)
at newone.Fibonacchi.main(Fibonacchi.java:10)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

0

It is me again. I made the double format and space. then i tried to run the main project from the netbean main menu. i get the same error message. however when i run the file only, i get the arraindexoutofboundsexeption:0.

0

I don't know what to tell you then. It runs just fine if you put two numbers in the Arguments field, like "3 3" or "12 2.45".

Perhaps you should ditch the IDE and run from the command line.

0

Ezzarel

Thank you for you help. I found it at last. I was not running it from the main.
that seems the problem, i think.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.