I have a line in my main like so:
Date gameDate = DateFormat.parse(scanner.nextLine());
Essentially I want to scan in a date with util.Scanner
Which hits the error:
Cannot make a static reference to the non-static method parse(String) from the type DateFormat
Now, I've looked in to this error, but it doesn't seem as clear cut as this example.
How do I get round this?