import TerminalIO.KeyboardReader;
public class TempConversion
{
public static void main(String [] TemperatureCalculations)
{
KeyboardReader reader = new KeyboardReader();
double fehrenheit;
double celsius;
System.out.print("Enter degrees Fahrenheit: ");
fahrenheit = reader.readDouble();
celsius = (fahrenheit - 32.0) * 5.0 / 9.0;
System.out.print("The equivalent in Celsius is ");
System.out.println(celsius);
reader.pause();
}
}
I picked up a copy of Fundamentals of Java by Lambert Osborne off of ebay not too long ago; it was reccomended to my by my AP Computer Science teacher because I had expressed interest in refining my Java knowlege (or rather, going over it all again as she was not the best at teaching it). I've started on it and have made it to this one program above. It tells me at compile time that it cannot find the TerminalIO package, and from what I know of Java, that means it is no longer supported in their JRE (though correct me if I'm wrong.) I don't know how to work around this, however. I've made sure it wasn't a spelling issue (the book goes though alot of the programs line for line) and I remember having a similar issue in AP class, but we where using an older JRE, and TerminalIO wasn't even a part of it I don't believe. If you could give me a hand and an explination as to the changes I need to make, I'd be grateful.
Regards,
M.