Jump to content


Photo
- - - - -

Java error cannot find symbol?


  • Please log in to reply
1 reply to this topic

#1 jhonrtin

jhonrtin

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 08 September 2011 - 07:07 AM

/**
* 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
______________________
smelly discharge

Edited by jhonrtin, 01 July 2012 - 12:23 PM.


#2 ErmaWarner

ErmaWarner

    Young Padawan

  • Members
  • Pip
  • 10 posts
  • Gender:Male
  • Location:Charlotte
  • Interests:My Hobbies is to playing the cricket and watching the tv

Posted 26 October 2013 - 05:36 AM

Hi folks,  i apologise for posting in the wrong thread.

So my name is Erma and i am a newbie out here at this community. So hoping to have a great time out here and enjoy the stay.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users