Yuliyan Tsarev

Greenhorn
+ Follow
since Feb 11, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yuliyan Tsarev

The way you've wrote this, the numbers a and b must be entered like arguments of the main methode when you're running your program

ex. java max_of_two_numbers 6 7 (only if you use a command prompt to run your program), where 6 is a and 7 is b

If you really want to be prompted to enter the numbers and read them from the ketboard, you should read that thing posted by Rahul

By the way, I suggest to you to switch to blueJ - www.bluej.org which is much more easier to use for a beginner
19 years ago