hi

new to java. how do i pass arguments in netbeans?

It can be found under "Project Properties > Run > Arguments".

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?

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.

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)

The numbers must be parsable as doubles and separated by spaces.

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.

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.

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.