Search:

Type: Posts; User: Adam802

Search: Search took 0.18 seconds.

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

    Month = s.nextInt(); in the Read method is returning null i think when i call it in Date1.Read(s) in main.

    Should I not make Scanner s and PrintSteam ps null? What should I make them instead?
  2. Re: Exception in thread "main" java.lang.NullPointerException problem.......

    the entire error is:

    Exception in thread "main" java.lang.NullPointerException
    at feiner.bcs345.health.datetime.MyDate.Read(MyDate.java:36)
    at datetimetest.main(datetimetest.java:73)

    the...
  3. Exception in thread "main" java.lang.NullPointerException problem.......

    So when I run this code, I get this "Exception in thread "main" java.lang.NullPointerException" error:


    import feiner.bcs345.health.datetime.*;
    import java.util.*;
    import java.io.*;...
Results 1 to 3 of 3