Exception in thread "main" java.lang.NoSuchMethodError : main
import java.util.Arrays;
import java.util.*;
import javax.swing.*;
class circle
{
private double r;
public circle(double radius)
{
r=radius;
}
}
public class eleven
{
public static void main(String args[])
{
circle c1=new circle(2);
circle c2=new circle(10);
circle c3=new circle(8);
circle c4=new circle(4);
circle c5=new circle(12);
circle[] c;
c=new circle[5];
c[0]=c1;
c[1]=c2;
c[2]=c3;
c[3]=c4;
c[4]=c5;
double d[];
d=new double[5];
d[0]=2;
d[1]=4;
d[2]=8;
d[3]=10;
d[4]=12;
Arrays.sort(c);
int i;
for(i=0;i<5;i++)
{
System.out.println(d[i]);
}
}
}