更新时间2021-12-14 19:38:27
import javax.swing.*;import java.awt.*;public class com extends JFrame { public void launch(){ this.setVisible(true); int width,height; this.setSize( width:600,height:600); this.setLocationRelativeTo(null); this.setTitle(贪吃蛇); public static void main(String[] args) { Com com =new Com(); com.lanch(); }}
就是语句的语法错,一共15行代码,你错了5行
改好的你参考下(程序员要细心细心再细心的)
另外,其中的 int width,height;根本没用
上一篇:尼康Z6IIZ7II
下一篇:使用这个SUM函数报错