import java.awt.*; public class Loim2 extends Frame implements Runnable{ Pall2[] pallid; public Loim2(){ pallid=new Pall2[5]; for(int i=0; iparem)dx=-Math.abs(dx); if(y>all)dy=-Math.abs(dy); if(x