Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SavitchIn

 
Rose Evans
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SavitchIn? Do you mean Safe I Ching?

Or the skin cream: Save Iching?
[ October 17, 2004: Message edited by: Barry Gaunt ]
 
Rose Evans
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Barry..Itch cream! Hahahah you are too funny!
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rose Evans
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic