12.07.2015 Views

5 Getting Input from Keyboard

5 Getting Input from Keyboard

5 Getting Input from Keyboard

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sample Program●The statement,BufferedReader dataIn = new BufferedReader(new <strong>Input</strong>StreamReader( System.in) );declares a variable named dataIn, with the class typeBufferedReader.– Don't worry about what the syntax means for now. We will cover more aboutclasses and declaring classes later in the course.Introduction to Programming 1 11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!