Vincent O'Sullivan

Greenhorn
+ Follow
since Sep 04, 2002
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 Vincent O'Sullivan

4. Expand Targeted Runtimes; ensure that "Apache Tomcat v5.5" is present. Click on it. In the Runtime Composition window (second window), you should see:

Apache Tomcat v5.5
JRE 5.0: jdk1.5.0_17 <-- this is where mine, which had been set up for Java 1.4, was wrong


Thanks Russel,

Step four cured my problem. I had imported the project which had been developed on a PC using an older version of Tomcat (that I don't have). Clicking the right version, here, fixed it.

Vince.
I couldn't resist it. Here's your homework. Things like validating the input parameters (i.e. there should be two which should be positive numeric values representing the inner radius followed by the outer radius) I've left as an exercise for you.

Vince.
18 years ago
Without giving any actual code, I'd suggest:
If it's a command line app (no graphics)
1. Write an application that accepts parameters (accepting parameters is built into the standard main method definition).
2. Treat the first two parameters as the inner and outer radii and calculate the required area.
3. Print the result.
At its simplest, you could do it in a single line of code (plus the class and method definitions).
Once you've got that working you can then jazz it up to ensure the inputs are valid, etc.

Vince.
18 years ago
Don't you just hate dumb jargon!