Package TerminalIO does not exsist.

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2006
Posts: 5
Reputation: MEversbergII is an unknown quantity at this point 
Solved Threads: 0
MEversbergII MEversbergII is offline Offline
Newbie Poster

Package TerminalIO does not exsist.

 
0
  #1
Jun 21st, 2006
  1. import TerminalIO.KeyboardReader;
  2.  
  3. public class TempConversion
  4. {
  5. public static void main(String [] TemperatureCalculations)
  6. {
  7. KeyboardReader reader = new KeyboardReader();
  8. double fehrenheit;
  9. double celsius;
  10.  
  11. System.out.print("Enter degrees Fahrenheit: ");
  12. fahrenheit = reader.readDouble();
  13.  
  14. celsius = (fahrenheit - 32.0) * 5.0 / 9.0;
  15.  
  16. System.out.print("The equivalent in Celsius is ");
  17. System.out.println(celsius);
  18.  
  19. reader.pause();
  20. }
  21. }

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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,467
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 267
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: Package TerminalIO does not exsist.

 
0
  #2
Jun 21st, 2006
I have never heard of that package, and somehow I doubt that the book
spelled it that way, since package names are suppossed to be all lower
case. Also, it was never a part of the JRE, since all those packages start
with either java, javax, com, sun, or org.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 5
Reputation: MEversbergII is an unknown quantity at this point 
Solved Threads: 0
MEversbergII MEversbergII is offline Offline
Newbie Poster

Re: Package TerminalIO does not exsist.

 
0
  #3
Jun 21st, 2006
Thats what I said at first, because all the ones I remember from class all ahve java in them. But none the less, the book says as the first line of code:

import TerminalIO.KeyboardReader;
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Package TerminalIO does not exsist.

 
0
  #4
Jun 22nd, 2006
That's certainly no standard package. It's probably developed (or described at least) somewhere else in the book in a section you skipped over.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 5
Reputation: MEversbergII is an unknown quantity at this point 
Solved Threads: 0
MEversbergII MEversbergII is offline Offline
Newbie Poster

Re: Package TerminalIO does not exsist.

 
0
  #5
Jun 22nd, 2006
I don't think I skipped over anything, its an early chapter, and the only pervious chapters where History of Computers.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 5
Reputation: MEversbergII is an unknown quantity at this point 
Solved Threads: 0
MEversbergII MEversbergII is offline Offline
Newbie Poster

Re: Package TerminalIO does not exsist.

 
0
  #6
Jun 22nd, 2006
Sorry for the double post; I can't find the edit button...but I moved on past that exercise and onto one called "Turtle Graphics", and it admits that TurtleGraphics is a nonstandard package, and it has me make an instance of it to draw basic graphical designs. I understand the workings and all, but seince I cannot compile, or even run this program because I don't have the appropriate package, how can I go about solving this problem?
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,467
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 267
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: Package TerminalIO does not exsist.

 
0
  #7
Jun 22nd, 2006
Did the book come with a CD? Or does it have all these non-standard
packages maybe written uot in an appendix or something. Or can you
look at the references and find out if it says where they might be downloaded from.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,467
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 267
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: Package TerminalIO does not exsist.

 
0
  #8
Jun 22nd, 2006
I would, however, say that you probably made a bad purchase. I cannot
believe a book that calls itself "Fundamentals of Java", and then goes
about using a load of non-standard, and falsely coded, packages can be
all that good. Maybe it is, but I would at least be wary.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1
Reputation: AlwaysLearning is an unknown quantity at this point 
Solved Threads: 0
AlwaysLearning AlwaysLearning is offline Offline
Newbie Poster

Re: Package TerminalIO does not exsist.

 
0
  #9
Oct 9th, 2006
You have probably moved on to other things by now, but I just discovered your thread and a possible solution for you (and by the way I've found this book to be very helpful). Here's a link to Martin Osborne's home page (he is one of the authors of the book you bought).
http://faculty.cs.wwu.edu/martin/
Near the bottom you'll find a link to the software packages you need for the examples you were trying.

Good luck!
Last edited by AlwaysLearning; Oct 9th, 2006 at 12:17 pm. Reason: missing info
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum


Views: 4556 | Replies: 8
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC