Changes

Jump to navigation Jump to search
165 bytes added ,  04:25, 26 March 2015
Line 81: Line 81:  
String line = myInput.nextLine();
 
String line = myInput.nextLine();
 
System.out.println("You entered: " + line);
 
System.out.println("You entered: " + line);
 +
 +
                System.out.println("Enter a number: ");
 +
                int value = myInput.nextInt();
 +
                System.out.println("You entered: " + value);
 
}
 
}
 
}</source>
 
}</source>
    
*Note: Ctrl + Shift + O in eclipse adds all the imports you need.
 
*Note: Ctrl + Shift + O in eclipse adds all the imports you need.

Navigation menu