package day; public class day { public static void main(String[] args) { // TODO Auto-generated method stub int a = 1; int b =1; System.out.println(a+b); } } /* Main.java:3: 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.