0

How to read user input from keyboard in Java

Background

This article demonstrates how to read input supplied by user via keyboard to the console.

Software Environment

  • Windows 7 Professional SP1
  • Eclipse – Kepler Release
  • Java 1.7 (1.7.0_67 – Windows x86)

The Codes

Sample Output

readfromkeyboard-output