View Single Post
09-08-2011, 08:14 AM
#1
jhonrtin is offline jhonrtin
Status: I'm new around here
Join date: Sep 2011
Location:
Expertise:
Software:
 
Posts: 1
iTrader: 0 / 0%
 

jhonrtin is on a distinguished road

  Old  Java error cannot find symbol?

/**
* Print to the screen.
*
* @author Beginner.
*/
public class Mag {


public static void main(String[] args) {

double circumference = 2 * Math.PI * radius;

System.out.println ("slant height (s): " + circumference);


}
}


I get:
Beginner.java:13: error: cannot find symbol
double circumference = 2 * Math.PI * radius;
......................................… ^

symbol: variable radius
location: class Beginner


Please help!
Thanks
_______________________
the course of miracles

Reply With Quote