Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Expected Identifier

807599Feb 22 2007 — edited Feb 22 2007
What have I done wrong that i reciev message expected identifier in line 4


import java.util.*;
public class Circle
{
static Scannerconsole = new Scanner(system.in);
public static void main (String args);

{
double radius, area;
System.out.print("Please Enter Radius: ");
radius = console.nextDouble();
area = 3.14 * radius * radius;
System.out.print("The Circle Area is "+area);

}
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2007
Added on Feb 22 2007
21 comments
308 views