Search:

Type: Posts; User: deathlypest

Search: Search took 0.35 seconds.

  1. Replies
    29
    Views
    817

    Re: a very confusing exception

    This problem has been solved.Thank you very much.
  2. Replies
    29
    Views
    817

    Re: a very confusing exception

    yes.The problem seems to be clear now.There is an old version .class file that executed unchangeably every time whatever I do to my program.So I can not debug it in a right way.But when I have...
  3. Replies
    29
    Views
    817

    Re: a very confusing exception

    for(int k=0; k<=kmax; k++)
    {
    System.out.println(k*dt+" "+ y[0][k]+" "+ y[2][k]);
    System.out.printf("%7.5f \t %7.5e \t %7.5e \n", k*dt, y[0][k], y[2][k]);

    }


    ...
  4. Replies
    29
    Views
    817

    Re: a very confusing exception

    Oh god.Do you mean put "System.out.println(k*dt+ y[0][k]+ y[2][k]);" before the exception calling line and "System.out.println( eerror);"

    Of course,I have done it.But it does not make any...
  5. Replies
    29
    Views
    817

    Re: a very confusing exception

    there is no use by putting println
  6. Replies
    29
    Views
    817

    Re: a very confusing exception

    really appreciate for your time.
    I put the original codes upon here.By cutting the program to a relative simple one having caused some changes which influenced the error.
    If you have to execute the...
  7. Replies
    29
    Views
    817

    Re: a very confusing exception

    If you have time trying to execute the program I gave,you should get the same result just like me
  8. Replies
    29
    Views
    817

    Re: a very confusing exception

    I know it does not seem to make sense.But it just the problem
  9. Replies
    29
    Views
    817

    Re: a very confusing exception

    they are just the same! but cutted from 500+ to 400+ by eliminating some branch codes.after using println,error still does not output
  10. Replies
    29
    Views
    817

    Re: a very confusing exception

    That is just one of things that confused me.I am also not able to get the output of variable eerror in my program.And when I try to debug it,every time "source not found" will be showed.But the codes...
  11. Replies
    29
    Views
    817

    Re: a very confusing exception

    the full screen is


    STEP 100
    Size of tree 102

    STEP 200
    Size of tree 199

    STEP 300
  12. Replies
    29
    Views
    817

    Re: a very confusing exception

    I have cutted my program a little shorter.What really matters to the exception here is the block where exists a plotsolution function,some relative variables declaration and the system.out.printf()...
  13. Replies
    29
    Views
    817

    Re: a very confusing exception

    still looking for help.I have uploaded the whole program from which you can get the same exception information.
  14. Replies
    29
    Views
    817

    Re: a very confusing exception

    I am sorry.this may be a copy problem.There is no compile error in my program.Thank you
  15. Replies
    29
    Views
    817

    Re: a very confusing exception

    actually all these four print methods in main method call no exception,they just can not print out

    the exception message lies in these two lines where I have already showed:

    y[s][k-1] +=...
  16. Replies
    29
    Views
    817

    a very confusing exception

    Problem:
    line 191 to 200


    static void plotsolution(int kmax) {
    System.out.printf("\n\n");

    for(int k=0; k<=kmax; k++)
    {
    System.out.printf("%7.5f \t %7.5e \t %7.5e \n",...
  17. Thread: hallo

    by deathlypest
    Replies
    0
    Views
    175

    hallo

    I am new here.wish all having a good time by Java
Results 1 to 17 of 18