Thread Closed  Post Thread 

Java error cannot find symbol?
Author Message
jhonrtin
Junior Member



Posts: 1
Group: Registered
   
Cash: 0.00 Donate
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


filme porno
09-08-2011 07:45 PM
Send the author a private message Find all posts by this author Quote this message in a reply
Affiliate Banner
This is an ad revenue sharing forum
Leonardo74
Junior Member



Posts: 3
Group: Registered
   
Cash: 0.00 Donate
RE: Java error cannot find symbol?

Add

"import java.math.*"

in your program first line.

*****


***** private limited
09-16-2011 09:25 PM
Send the author a private message Find all posts by this author Quote this message in a reply

Thread Closed  Post Thread 


Similar Threads
Thread: Author Replies: Last Post
India's No1 Java Programming Training Institute or Center techmentro 0 05-01-2012 09:44 PM
Can java is used as a Web Development language? vimaljaya 5 05-15-2012 02:18 PM
In Java, what’s the difference between method overloading and method overriding? clerisy 0 01-24-2012 08:14 PM

View a Printable Version | Send this Thread to a Friend | Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:
Forum Jump: