Nicholas Decrescenzo

Greenhorn
+ Follow
since Jun 24, 2012
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 Nicholas Decrescenzo

I wrote the code from the examples I received. This is our first lab getting and setting as well as using object / class scenario. I stated that the get radius method probably doesn't do anything because I'm still ignorant what these get & sets do. I'm eager to learn but still a beginner. I typed out the first 15 lines and then used the Netbeans insert code 'get & set' tool.

Now the getArea & getCIrcumference methods I updated and didn't add or change the getRadius method is why I replied that way. Since my getRadius method is okay, I'll try and invoke it but still unsure why I have setArea. After this lab I assume to understand.
11 years ago
I'm guessing the getRadius method doesn't do anything yet. I put that unfinished method there.
11 years ago
Hi Greenhorn! I tried this but Netbeans gives me an error warning:

double c.getRadius = ConsoleValidator.getDouble("Enter radius: ");

How do you mean?
11 years ago
Hey thanks for the reply. I thought that's what I was doing here:

double getRadius = ConsoleValidator.getDouble("Enter radius: ");

The variable getRadius is where I'm getting stuck. Just need a small push to begin understanding the proper way about sending the data to the class file.

11 years ago
I cannot figure out how to set up the main for my application to pass the radius input from a user into my circle class. I am using a ConsolValidator script to stop any bad input and need a 2nd class file to send me back data about the circle's radius. Any help would be appreciated.



11 years ago