Getting input from keyboard

Topics 

  • Two ways getting user input 
    • Getting input from command-line (using BufferedReader class) 
    • Getting input from GUI (using JOptionPane class) 
  • Converting user-entered “String” type value to “int” type value 
    • For example, capturing age of a person

 

Download course content