what you need to do is simply copy the code from the clock.java file into a new text document on your computer, then rename the text document to exactly the same name as the class, then .java
so you would
- copy the contents
- create a new text file
- open the text file and paste the java code from the website
- save and close the text document
- rename the text file to Clock.java
- then run your javac command as you were.. "javac Clock.java"
- then run the clock class like you were.. "java Clock"
A kram a day keeps the doctor......guessing