001package basics.objectclass;
002// A static class
003public class Main3 {
004        private Main3() {}
005        static public void main (String[] args) {
006                //stdlib.Trace.graphvizShowSteps (true); stdlib.Trace.run ();
007                Circle3[] list = new Circle3[3];
008                for (int i = 0; i < list.length; i++)
009                        list[i] = new Circle3 (i*10);
010                for (Circle3 c : list)
011                        System.out.println(c);
012        }
013}
014// An object class
015final class Circle3 extends Object {
016        int radius;
017        public Circle3(int radius) { this.radius = radius; }
018        public String toString() { return "Circle(" + radius + ")"; }
019}