public class T extends java.applet.Applet {
int cv = 0;
public void init() {
cv = cv + 10000;
}
public void paint(java.awt.Graphics gg) {
int mv = 0;
java.awt.Font f = getFont();
java.awt.Font ff = new java.awt.Font(f.getFontName(), java.awt.Font.BOLD, 40);
gg.setFont(ff);
gg.drawString("cv = " + cv, 10, 50);
gg.drawString("mv = " + mv, 10, 100);
cv = cv + 1;
mv = mv + 1;
}
}
if (5>4) { ..... |
int a=5; int b=4; if (a>b) { .... |
int a=5; int b=4; boolean c=a>b if (c==true) {.... |
int a=5; int b=4; boolean c=a>b if (c) {.... |