Search:

Type: Posts; User: andreas90

Search: Search took 0.13 seconds.

  1. Re: java.lang.nullpointer exception in beginner code

    As I told in my other two posts, you have to initialize an array before you use it. Assuming that you haven't initialized your array (if you do initialize it somewhere else please post here the...
  2. Re: java.lang.nullpointer exception in beginner code

    Are you getting an "java.lang.NullPointerException"? Did you try what I suggested in post#2?
    Where do you define and initialize your books array?
  3. Re: java.lang.nullpointer exception in beginner code

    Hello Bobba!
    Which line is Library.displayBooks(Library.java:76)? You should print the variables in that line to find out which is null.
    Until you provide us with further information, I am only...
Results 1 to 3 of 3