Search:

Type: Posts; User: Mr.777

Search: Search took 0.07 seconds.

  1. Replies
    11
    Views
    3,553

    Re: Problem with java.lang.NullPointerException

    It will ofcourse not. I told you the reason earlier. Read my post.
  2. Replies
    11
    Views
    3,553

    Re: Problem with java.lang.NullPointerException

    There is no datatype as var in Java. (Remember Java and Javascript are not same)
    And char reply; is fine. Now you can input a single character in this variable.
    What Norm means is, you must check...
  3. Replies
    11
    Views
    3,553

    Re: Problem with java.lang.NullPointerException

    No, you don't want to initiate it but to declare it. Initialization will be optional in this case as you want user to input this. So, whatever value you initialize it with, it will be over written by...
  4. Replies
    11
    Views
    3,553

    Re: Problem with java.lang.NullPointerException

    Well, after looking at your code,
    1. what do you expect findInLine() to return?
    2. Do you have the complete understanding how this function works?
    I would suggest you readingScanner (Java 2 SE...
Results 1 to 4 of 4