}
public void paint(Graphics g) {
float r=circRadius,delta,theta,x0,y0,x1,y1 ;
float xc,yc ;
int nPoints =200 ;
xc=winWidth/2 ;
yc=winHeight/2 ;
x0=0.0f ;
y0=0.0f ;
for(int k=0;k<nPoints;k++) {
if(k==0) {
theta=0.0f ;
x0=r*(float)Math.cos(theta)+xc ;
y0=r*(float)Math.sin(theta)+yc ;
}
theta=2.0f*PI*(float)(k+1)/(float)nPoints ;
x1=r*(float)Math.cos(theta)+xc ;
y1=r*(float)Math.sin(theta)+yc ;
g.drawLine((int)x0,(int)y0,(int)x1,(int)y1) ;
x0=x1;
y0=y1;
}
}
}

ここでi,jは整定数、aは実定数(circRaius)。0≦θ≦2π 。つまりrはθとともに変化する。
i,jをいくつか変えたサンプル出力を以下に示す。
http://a.jmpd.com/upload/show.php?pid=87-A&db=nakama&type=1
プログラムは 1≦i≦5、1≦j≦5すべてに完璧に対応できるようにしてください。また最後の文字列は以下のようにコーディングしました。
g.drawString("Leaves i= "+i+" j= "+j,110,275) ;

こんな感じです。お願いできますでしょうか?