Search:

Type: Posts; User: creativeguitar

Search: Search took 0.27 seconds.

  1. Re: unsorted array list (Exception in thread "main" java.lang.NullPointerException)

    Alright, thanks for all your help!
    i look in forums for very long time before i ask something and i couldnt find much info about this topic, so to make it easier for everybody else in the future,...
  2. Re: unsorted array list (Exception in thread "main" java.lang.NullPointerException)

    Alright so i found part of the problem, in the "insert" part my program used Seqserch to find duplicates, if there were duplicates it made that part of the array null.
    i made the "insert" part...
  3. Re: unsorted array list (Exception in thread "main" java.lang.NullPointerException)

    I think im going in the right direction but i still dont understand how to fix it. i found a temporary fix but i would like to know why is doing this.

    here is what i did, i added an if statement...
  4. Re: unsorted array list (Exception in thread "main" java.lang.NullPointerException)

    If i run the program without invoking log.max(); i dont get any error.
    i dont think my problem is specifically in the max() function but in compareTO or somwhere else. i cant figure it out

    this...
  5. unsorted array list (Exception in thread "main" java.lang.NullPointerException)

    this is the assignment:

    1. Create an Abstract DataElement Class as described in the Lecture.

    2. Inherit an IntElement from DataElement Class as described in the Lecture.

    3. Create an...
Results 1 to 5 of 5