Perhaps you meant
c1[i] = new Circle(radius);
If there is a class called Circle2,
try type casting it
cl[i] = (Circle) new Circle2(radius);
Type: Posts; User: javapenguin
Perhaps you meant
c1[i] = new Circle(radius);
If there is a class called Circle2,
try type casting it
cl[i] = (Circle) new Circle2(radius);
c1[i] = new Circle2((double)radius);
However, Circle2 isn't defined anywhere.
Second, why not make radius a double to start with by
radius = readIn.nextDouble();
?