What do you mean I didn't assign any type to radius in my calcCirc and calcArea? In the methods I put radius = rad; is that wrong? am I supposed to put double rad = radius???
Type: Posts; User: alex067
What do you mean I didn't assign any type to radius in my calcCirc and calcArea? In the methods I put radius = rad; is that wrong? am I supposed to put double rad = radius???
so when I identify calcCirc, instead of calcCirc(); I would have to identify it as calcCirc(double radius); in order to pass the radius value onto the calcCirc method?
Sorry about not putting it around the code format!
So in order to fix it I would have to call the methods as, circ = calcCirc(double); ?
and area = calcArea(double);
Or instead of (double) I...
Sup guys, newcomer to the forums with a relatively easy question to ask. Being a relatively newcommer to Java, my first assignment was to create a simple program which asked the user to input a...