Search:

Type: Posts; User: Norm

Search: Search took 0.54 seconds.

  1. Replies
    11
    Views
    4,825

    Re: Negative condition does not work

    Why does the code use 4 variables here that always have the same value? Just use one variable if they are all the same values.

    for (spinelliIDanagrafica = 1, spinelliIDdispositivo = 1,...
  2. Replies
    11
    Views
    4,825

    Re: Negative condition does not work

    Which line(s) are not handled correctly by the if/else statement?
    Which values are being tested by the if statement?

    The code in post#7 does NOT show the debug print statement or the if...
  3. Replies
    11
    Views
    4,825

    Re: Negative condition does not work

    Add some print statements that print out the values of the variables that are being tested in the if statement. The values printed should show you what is being compared in the if statement and help...
  4. Replies
    11
    Views
    4,825

    Re: Negative condition does not work

    When executing the program, The JVM says the size is 279 elements which means that the maximum index can be 278.


    What statement is at line 259? Why does it have an index value past the end of...
  5. Replies
    11
    Views
    4,825

    Re: Negative condition does not work

    Are you sure there are 281 elements? The computer thinks there are only 280.
Results 1 to 5 of 5