SavitchIn to read from the console input stream.
Tutorial Details:
Non-standard. The Savitch textbook is good, but has one objectionable aspect - Instead of using standard Java to get input from the user, he has written a proprietary class called SavitchIn to read from the console input stream. You will never see this class used anywhere else. If you use it in this class, you will have to forget about it and learn the standard way to doing things. I propose we drop it and learn one of the easy, standard ways to do input.
Scanner, but.... Before Java 5 (JDK 1.5), it was awkward to read from the console, so his intentions were good in making it easier for students. Console input can be done using the Java 5 java.util.Scanner class. However, this only works if you have installed Java 5, which was not on the book CD. Some students probably don't have adequate download access, so this alternative is unacceptable. Anyway, there's a better way using graphical dialog boxes.
Rate Tutorial: http://www.roseindia.net/java/java-tips/examples-introductory/cmis102a/savitchIO.shtml
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: Alternatives to SavitchIn
View Tutorial: Alternatives to SavitchIn
Related
Tutorials:
The Volano Report: Which Java platform is fastest,
most scalable?
A JavaWorld exclusive! - JavaWorld - Mar
The Volano Report: Which Java platform is fastest,
most scalable?
A JavaWorld exclusive! - JavaWorld - March 1999 |
How to easily reconfigure your applications -- while
they're running - JavaWorld - April
1999
How to easily reconfigure your applications -- while
they're running - JavaWorld - April
1999 |
Program Java devices -- An
overview - JavaWorld July 1999
Program Java devices -- An
overview - JavaWorld July 1999 |
Clearing resources
Clearing resources |
Java performance programming,
Part 3: Managing collections - JavaWorld February 2000
Java performance programming,
Part 3: Managing collections - JavaWorld February 2000 |
Alternative deployment
methods, Part 1: Beyond applets - JavaWorld May
2000
Alternative deployment
methods, Part 1: Beyond applets - JavaWorld May
2000 |
Solid JRun serves
up Java on a budget - JavaWorld June 2000
Solid JRun serves
up Java on a budget - JavaWorld June 2000 |
Alternative deployment
methods, Part 3: The code - JavaWorld September
2000
Alternative deployment
methods, Part 3: The code - JavaWorld September
2000 |
Activatable Jini services, Part 2: Patterns of use
- JavaWorld
October 2000
Activatable Jini services, Part 2: Patterns of use
- JavaWorld
October 2000 |
Solve your
servlet-based presentation problems - JavaWorld November
2000
Solve your
servlet-based presentation problems - JavaWorld November
2000 |
Take control of the servlet environment, Part 1 - JavaWorld November 2000
Take control of the servlet environment, Part 1 - JavaWorld November 2000 |
Take control of the servlet environment, Part 2 - JavaWorld December 2000
Take control of the servlet environment, Part 2 - JavaWorld December 2000 |
Manage distributed
sessions - JavaWorld April
2001
Manage distributed
sessions - JavaWorld April
2001 |
Think small: Java on Compaq's iPAQ
Think small: Java on Compaq's iPAQ |
My kingdom for
a good timer!
My kingdom for
a good timer! |
Struts best practices
Multiple options are available for solving problems with Struts. When deciding among these alternatives, the choice must be based on parameters such as the scale of work and availability of time. |
Jurassic Phoenix - reviving yesterday\'s data
Jurassic Phoenix - reviving yesterday\'s data
Jurassic Phoenix is a simple solution to the problem of evolution of serialized data.
Why use Jurassic Phoenix?
The frustration
Serialization is great for persistence, because it is automatic, dynamic and |
UML 2.0 Sequence Diagramming
Modeling Complex Code in SunONE Studio with Embarcadero's Integrated Modeling Developement Environment, Describe. |
Asking "Why" at Sun Laboratories: A Conversation with Director, Glenn Edens
Sun Laboratories Director, Glenn Edens, discusses new research developments in the Java language and the gratifications and trials of running a research lab. |
Accessing Database from servlets through JDBC!
Accessing Database from servlets through JDBC!
Java Servlets
J ava Servlets are server side components that provides a powerful mechanism for developing server side of web application. Earlier CGI was developed to provide server side capabilities |
|
|
|