Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    29
    Views
    3,309

    Re: a very confusing exception

    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...
  2. Replies
    29
    Views
    3,309

    Re: a very confusing exception

    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...
  3. Replies
    29
    Views
    3,309

    Re: a very confusing exception

    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...
  4. Replies
    29
    Views
    3,309

    Re: a very confusing exception

    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...
  5. Replies
    29
    Views
    3,309

    Re: a very confusing exception

    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...
  6. Replies
    29
    Views
    3,309

    Re: a very confusing exception

    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...
  7. Replies
    29
    Views
    3,309

    Re: a very confusing exception

    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);
  8. Replies
    29
    Views
    3,309

    Re: a very confusing exception

    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...
  9. Replies
    29
    Views
    3,309

    Re: a very confusing exception

    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...
  10. Replies
    29
    Views
    3,309

    Re: a very confusing exception

    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...
  11. Replies
    29
    Views
    3,309

    Re: a very confusing exception

    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...
  12. Replies
    29
    Views
    3,309

    Re: a very confusing exception

    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...
Results 1 to 12 of 12