两个小问题求教~
..
.
.
public void paintComponent(Graphics g){
super.paintConponent(g);
Graphics2D 2g = (Graphics2D)g;
for (Ball b : balls)
.
.
.
.
Graphics2D 2g = (Graphics2D)g;这一句是不是就是强制转型? 强制转型规则是怎样的?
for (Ball b : balls) 这一句又是什么意思? 好象没见过这种格式?