public void paint (Graphics g){ for (int nSoRh=5; nSoRh<=100; nSoRh+=50) for (int nSoRv=25; nSoRv<=100; nSoRv+=50) { int widthofRect = 50; int heightofRect = 50; int nextStepofRecth = nSoRh; int nextStepofRectv = nSoRv; g.drawRect (nextStepofRecth,nextStepofRectv, widthofRect, heightofRect); g.drawString ("Huhn" , 100 ,60); } }