o,我修改后重新编译了一次,发现系统给我的报错是: Average1.java:44: illegal start of type ) ^ Average1.java:44: <identifier> expected ) ^ Average1.java:42: cannot resolve symbol symbol : variable system location: class Average1 system.exit( 0 ); //terminate the program ^ 3 errors原来那个 system.exit (0) 没使用大写 还有结束是以原括号结束的。 真怪我粗心大意。
Average1.java:44: illegal start of type
)
^
Average1.java:44: <identifier> expected
)
^
Average1.java:42: cannot resolve symbol
symbol : variable system
location: class Average1
system.exit( 0 ); //terminate the program
^
3 errors原来那个 system.exit (0) 没使用大写
还有结束是以原括号结束的。
真怪我粗心大意。