Are you getting error messages when you try to compile it using a command prompt window?
If so, please copy and paste them here.
To copy the contents of the command prompt window:
Click on Icon...
Type: Posts; User: Norm
Are you getting error messages when you try to compile it using a command prompt window?
If so, please copy and paste them here.
To copy the contents of the command prompt window:
Click on Icon...
You must have an old version of the class file somewhere. Erase all the old .class files and build new ones.
I use the println command to print out the values of variables so I can see what the...
Change the println to this so it prints the three values and not their sum:
System.out.println(k*dt+ " " + y[0][k]+" " + y[2][k]);
Execute the code, copy the output and paste it here.
What...
What prints out when you add the println just before the printf where the error occurs?
If you do not want to do the above then I can not help you any more. You need to add the printlns to show...
What prints out when you add the println just before the printf where the error occurs?
I do NOT get any errors with the code you posted. Since it is different code from what you are using, its a...
If you work with one source and post another source here there is no way anyone can help you find and fix the problem.
What prints out when you add the println just before the printf where the...
Are you working with a different program? I don't see what this line would output in what you posted:
System.out.printf("error = %7.5e\n", eerror);
Try debugging the code by adding a call to println() just before the call to printf() and have it print out the values of the variables used in the printf() method call. That will show what the...
Can you post the full contents of the screen from when you execute the program?
Where is the small program for testing? What number post is it in? I would expect the program to be less than 30...
Can you make a small simple program that compiles, executes and shows the problem? Copy the part that is the problem into a small program, don't post the whole program (over 500+ lines) that is...
The problem in post#1 was a runtime exception NOT a compiler problem. If you are still getting that exception and want help with it, you need to post a complete program that compiles, executes and...
Which of the 4 printf statements that you posted gives the error?
Could you change the posted code so it has only one printf that has the problem?
Make a simple complete program that will...