Jump to content

Java help


goldendesign
 Share

Recommended Posts

I have been banging my head up and down the Oracle help center for an hour to find the solution. I can't seem to make it work.

I have a simple problem: I need to square PI for a Torus ring in Java.

Here is the line with the problem:

surfaceArea = ( 4 * Math.pow( PI, 2 ) * radiusI * radiusO );

I get an error saying it needs ( double , double) but only finds double

Do I declare PI? Like a  final double PI = math.PI

 

Any Java gurus willing to wade in and illuminate my problem?

 

Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...