I'm using the following package: https://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html
How do I create a clock variable? I tried:
Clock clock = new Clock();
But I got the error:
TimeCheck.java:14: error: Clock is abstract; cannot be instantiated
I also tried private Clock clock; outside of the main() function, but when I ran the main() function and tried clock.instant() it said:
TimeCheck.java:16: error: non-static variable clock cannot be referenced from a static context