12.07.2015 Views

5 Getting Input from Keyboard

5 Getting Input from Keyboard

5 Getting Input from Keyboard

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Steps to get <strong>Input</strong>1. Add this at the top of your code:import java.io.*;2. Add this statement:BufferedReader dataIn = new BufferedReader( new<strong>Input</strong>StreamReader(System.in) );Introduction to Programming 1 5

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

Saved successfully!

Ooh no, something went wrong!