PPT Slide
public class buff extends Applet {
int x=10, y=10, dx=1, dy=2;
public void init(){super.init();}
public void paint (Graphics g){
g.fillRect(0,0,getSize().width, getSize().height);
if (x>=getSize().width-10 || x <=10) dx*=-1;
if (y>=getSize().height-10 || y <=10)dy*=-1;