This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
java:exceptions_intro [2015/03/02 07:26] gthanos |
java:exceptions_intro [2015/03/02 07:41] gthanos |
||
---|---|---|---|
Line 18: | Line 18: | ||
int y; | int y; | ||
int result; | int result; | ||
+ | Scanner input = new Scanner(System.in); | ||
System.out.print( "Enter first integer: " ); | System.out.print( "Enter first integer: " ); | ||
Line 28: | Line 29: | ||
| | ||
System.out.printf( "Product is %d\n", result ); | System.out.printf( "Product is %d\n", result ); | ||
+ | } | ||
} | } | ||
</code> | </code> |