Snake S = new Snake(4); float dim=400; class Snake { int maxnb=100; int nb=0; // number of balls int b=0; // index of picked ball float r[] = new float [maxnb]; // radii of balls pt C[] = new pt [maxnb]; // centers of balls Snake() {for (int i=0; i