Changes

Jump to navigation Jump to search
173 bytes added ,  04:27, 26 March 2015
Line 85: Line 85:  
                 int value = myInput.nextInt();
 
                 int value = myInput.nextInt();
 
                 System.out.println("You entered: " + value);
 
                 System.out.println("You entered: " + value);
 +
 +
                System.out.println("Enter a number: ");
 +
                double dvalue = myInput.nextDouble();
 +
                System.out.println("You entered: " + dvalue);
 
}
 
}
 
}</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