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

Java error cannot find symbol?

Thread title: Java error cannot find symbol?
    Thread tools Search this thread Display Modes  
09-08-2011, 08:14 AM
jhonrtin is offline jhonrtin
Status: I'm new around here
Join date: Sep 2011
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: error: cannot find symbol
double circumference = 2 * Math.PI * radius;
......................................… ^

symbol: variable radius
location: class Beginner

Please help!
the course of miracles

Reply With Quote
09-08-2011, 05:13 PM
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,893
iTrader: 18 / 100%

Village Genius will become famous soon enough


Where was radius defined?

Reply With Quote

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