Professional Documents
Culture Documents
JAVA-PR-29 All
JAVA-PR-29 All
import java.awt.*;
import java.applet.*;
}
g.drawOval(a, b, c, d);
a -= 10;
b -= 10;
c += 8;
d += 8;
}
}
g.drawPolygon(x, y, 4);
g.drawArc(55, 95, 78, 50, 0, -180);
g.drawLine(50, 126, 60, 116);
g.drawLine(128, 115, 139, 126);
}
}
/*<applet code = face.class width = 400 height = 300></applet> */
Output: