Sun . Java . Code Library . k*

{ ... // keyboard input reads, javax.swing.JOptionPane
jOptionPane.showInputDialog ("question 5W1H prompts to user here")
String user's_keyboard_input = jOptionPane.showInputDialog ("question 5W1H prompts to user here");
int number_converted = Integer.parseInt (user's_keyboard_input);
double number_converted = Double.parseDouble (user's_keyboard_input);
... }