package come.imooc; import java.util.Scanner; public class helloword{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A=sc.nextInt(); int B=sc.nextInt(); System.out.println(A+B); } } /* Main.java:5: error: class helloword is public, should be declared in a file named helloword.java public class helloword{ ^ 1 error */ |
Double click to view unformatted code.