Computer Science (CSCI) Department
College of Engineering, Computer Science, & Technology (ECST)

JETT Workshops
Java Basics

Fall 2004


Input and Output
(Example code and figures from Computing Concepts with Java Essentials, 3rd edition, by Cay Horstmann.
Visit www.wiley.com/college/horstmann for information on the current edition of this excellent text.)


Exercise - play with Input and Output in TextPad

  • save these files to play with
    • make another subdirectory (not in your Visual Studio .NET directory)
  • use TextPad to compile and execute
    • start TextPad
    • open both files
    • bring InputTest.java to the front
    • Crtl+1 to compile
    • Ctrl+2 to execute
  • you can use JOptionPane for output as well
  • look at how System.in can be used for input
  • play around with these two approaches