Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,256
Total Threads: 81,171
Total Posts: 566,848
There are 46 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

Java error cannot find symbol?

Thread title: Java error cannot find symbol?
Reply    
    Thread tools Search this thread Display Modes  
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
09-08-2011, 05:13 PM
#2
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,892
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

Where was radius defined?

Reply With Quote
Reply    


Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed