I have a problem with Date object. It throw exceptions and I don't have any idea how to correct that problem. I doubt that try-catch is proper solution. There is the stack trace result: java.lang.IllegalArgumentException at java.util.Date.parse(Date.java:617) at java.util.Date.<init>(Date.java:274) at pl.codegym.task.task20.task2002.Solution.main(Solution.java:28) Or like this, if I don't initialize this field for User object: java.text.ParseException: Unparseable date: "null" at java.text.DateFormat.parse(DateFormat.java:366) at pl.codegym.task.task20.task2002.Solution$CodeGym.load(Solution.java:84) at pl.codegym.task.task20.task2002.Solution.main(Solution.java:32)