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