マウスの移動にあわせて線を描くAppletとして、
public class Test extends Applet {
int xx[] = new int[500];
int yy[] = new int[500];
int ct = 0;

public void init() {
addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent e) {
ct = 0;
xx[ct] = e.getX();
yy[ct] = e.getY();
}
});
addMouseMotionListener(new MouseMotionAdapter() {
public void mouseDragged(MouseEvent e) {
if (ct+1 >= 500) return;

xx[++ct] = e.getX();
yy[ct] = e.getY(); ←なんでyy[++ct]じゃないのか分からない
repaint();
}
});
}
public void paint(Graphics g) {
if (ct >= 1) {
g.drawPolyline(xx, yy, ct);
}
}
}
が教本に乗ってるんですが、なんでyy[++ct]じゃないのか教えて下さい。