This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes SavitchIn Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "SavitchIn" Watch "SavitchIn" New topic
Author

SavitchIn

Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
I have a question for you guys. We are using SavitchIn to get input from users at the moment, but the person teaching us is telling us we'll never use SavitchIn in real life applications. What is your take on that?
I'd appreciate any feedback.


) ) ) )
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
SavitchIn? Do you mean Safe I Ching?

Or the skin cream: Save Iching?
[ October 17, 2004: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
Safe I Ching?? What is that??!!
We use something like..... number = SavitchIn.ReadlineInt() to get a users input. Have you ever heard of it?
Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
Safe I Ching??
What is that??!!
We use something like..... number = SavitchIn.ReadlineInt() to get a users input. Have you ever heard of it?
Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
Barry..Itch cream! Hahahah you are too funny!
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
So that's my feedback! Never heard of it. At one time Java I/O was considered hard compared to other languages. So Unis and Colleges developed their own packages to make things a little easier. Personally I prefer to struggle through java.io.* and do things the standard way.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
There's a whole bunch of i/o classes written to supplement various textbooks
e.g EasyIn, KeyboardIO, SavithIn etc

Their purpose seems to be to package 'user input/conversion/error handling'
in a way that allows the student to concentrate on just getting the data
and doing something with it. Lessons in error handling and data conversions
must appear later in the book. If not,I'd recommend getting another book.

e.g (assume 'br' is a BufferedReader/InputStreamReader)


all of the above is handled in
int iNumber = SavitchIn.readInt();//is it readInt()?

To answer the specifics of your question, you wouldn't use the SavitchIn
classes in real world apps.
Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
Barry,

Using SavitchIn is a breeze, I just hate to spend so much time using
it if I won't use it in a 'real world' applications.
Java sure seems easier to use than C++. I'm struggling along in it as well. )

Michael,

This book is Java - An Introduction to Computer Science and Programming. By Walter Savitch. It's an ok book, our instructor just goes a little fast for most of us! I think I need to check out several java books.

Thanks for replying!
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
I've seen a few people post code here that uses this SavitchIn class. As you can see the people that responded to your question aren't familiar with it. As Barry, mentioned it isn't used in "real life" applications. From what I understand, it is a class written by the author of your textbook.

With that said, I agree that the java.io package is a bear to muddle through, especially if you have never written a computer program in your life. Eventually, you will want to figure out the standard I/O classes that it provides. For now, I would suggest that you get a handle on the basic language constructs, though. It will make understanding the java.io package much easier in the long run, imho.

Layne


Java API Documentation
The Java Tutorial
Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
Thank you Layne,

You're exactly right. It is a class written by the author. I've tackled Visual Basic.NET I and II, a semester of COBOL, plain ol QBasic, and now I'm trying to tackle Java and C++ at the same time. They are both a bear to wrestle with. Java is easier though, to me. I think I need a different book!

Thanks for your reply!
 
Consider Paul's rocket mass heater.
 
subject: SavitchIn