import java.util.Scanner;
import java.text.DecimalFormat;
public class Main
{
public static void main(String[] args)
{
double radius;
double circ;
double area;
radius = getRadius();
circ = calcCirc();
area = calcArea();
DecimalFormat fmt = new DecimalFormat ("0.##");
System.out.println("run \n " + "The circumference of the circle is \n" + circ
+ "The area of the circle is \n" + area);
}
public static double getRadius()
{
double radius;
Scanner scan = new Scanner(System.in);
System.out.println("Enter the radius of the circle");
radius = scan.nextDouble();
return radius;
}
public static double calcCirc(Radius)
{
double circ;
double pi;
pi = 3.14159;
circ = 2.0 * rad * pi;
return circ;
}
public static double calcArea(radius)
{
double area;
double pi;
pi = 3.14159;
area = pi * rad * rad;
return area;
}
}
Main.java:37: error: <identifier> expected
public static double calcCirc(Radius)
^
Main.java:47: error: <identifier> expected
public static double calcArea(radius)
^
2 errors
I've come across these 2 errors when trying to compile. Any ideas what i have done wrong to get these errors? i am rather new to java and need some assistances thank you