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?
Type: Posts; User: Adam802
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?
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...
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.*;...