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