jquery教程http://www.software8.co/wzjs/jquery/
1. throw关键字
2. return关键字
3. continue关键字
4. break关键字
5. while(true):
以上均会出现编译错误:
posted on 2013-01-22 17:23 你爸是李刚 阅读(4800) 评论(1) 编辑 收藏
@Override public void actionPerformed(ActionEvent e) { if (e.getSource() == btnStart) { while(true){} btnStart.setEnabled(false); start = true; x = r.nextInt(38); y = r.nextInt(32); snackLocation s = new snackLocation(); s.setX(20); s.setY(15); list.add(s); th = new Thread(this); th.start(); this.requestFocus(true); repaint(); } if (e.getSource() == btnStop) { System.exit(0); } if (e.getSource() == btnOK) { list.clear(); score = 0; speed = 1; btnStart.setEnabled(true); start = false; dia.setVisible(false); repaint(); } } 回复 更多评论
Powered by: BlogJava Copyright © 你爸是李刚