0_0_16791134_28470\Main.java:3: 错误: 类sum是公共的, 应在名为 sum.java 的文件中声明 public class sum{ ^ 0_0_16791134_28470\Main.java:9: 错误: 不兼容的类型: int无法转换为boolean while(a = sc.nextInt()) ^ 2 个错误