Regarding ConsoleReader:
Being kind of new to Java, I have wondered why non-standard elementary classes like ConsoleReader keep showing up on programming help forums like this.
So, I did a little research, and here's what I conclude:
Before Java 5 was released, eight or nine years ago, there was no java.util.Scanner class, and beginners were saddled with learning about BufferedReaders and InputStreams and stuff like that. There were a lot of things floating around to make it a little easier to read numbers from user console input, and some of them involved a class named ConsoleReader. For example
ConsoleReader.java (From a syllabus of a course with a date of 2001.) There are a lot of different (non-standard) classes with the same or similar names, so you were required to get yours from your own instructor.
Anyhow...
The Java source files for things like ConsoleReader were part of class "handouts." Maybe even a whole package of I/O was given out, and students were required to use whatever the instructor said for them to use. That wasn't very unreasonable for the times, I guess.
However...
Nowadays, I don't see why they don't just teach about java.util.Scanner on the first day of beginners' classes (well, maybe the second or third day) and be done with it. I know that for some institutions, teaching materials and methods (and instructors) haven't been updated for more than eight or nine years, so I guess that's why we still see non-standard classes like ConsoleReader being given to somewhat-bewildered students who already have enough stuff being pushed into one ear that it just runs out the other. Maybe a little will actually stay inside, but...
Bottom line: If you aren't actually required to use ConsoleReader, then the first part of the hokey example can use something that is standard and just as easy to use and doesn't require you to compile a separate class. It can look something like this:
import java.util.*; // Note that Scanner is in java.util, not java.io
public class Whatever {
public static void main(String[] args) {
// first comment
// Get the number of seconds from the user.
// Create a Scanner object to get user input.
Scanner console = new Scanner(System.in);
System.out.print("Please enter a number of seconds: ");
double sec = console.nextDouble();
// From Zaphod_b:
// Everything else can be the same as the original
// (and will give the same hokey wrong results).
//
.
.
.
Then, helpers on this forum, being more tuned into currently standard Java classes, might be more willing and able to offer specific, detailed assistance.
Cheers,
Z