Search:

Type: Posts; User: Cornix

Search: Search took 0.10 seconds.

  1. Re: Exception in thread "main" java.lang.NullPointerException

    Yes exactly. A NullPointerException happens when you try to call a method on an object, but the object does not exist.
    For example, compare these two bits of code:

    String s = "Hello World";...
  2. Re: Exception in thread "main" java.lang.NullPointerException

    Please post the entire error message. Furthermore, do you know what a NullPointerException is and what it means if you get one?
    Perhaps google the term "NullPointerMessage" and read up on some...
Results 1 to 2 of 2