Wednesday, December 1, 2010

Java Tutorial #8

0
More of the Scanner Topic

This is another example of the Scanner Topic.  This time the Scanner will store a double value.  Consider this simple program. 
How this program works?
First the program will ask for a first number to add.  After you enter the first number,  It will ask you again to input a value which will be the second number to be add.  After, you enter the second value, the program will add the two values and display the result to the console.


TO THE CONSOLE, It will display this..



No Response to "Java Tutorial #8"

Post a Comment