package mile; import java.util.Scanner; public class mile { public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner(System.in); int a =input.nextInt(); int b =input.nextInt(); System.out.println(a+b); } } /* Main.c:1:1: error: unknown type name 'package' package mile; ^ Main.c:2:1: error: unknown type name 'import' import java.util.Scanner; ^ Main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token import java.util.Scanner; ^ Main.c:3:1: error: unknown type name 'public' public class mile { ^ Main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mile' public class mile { ^ */ |
Double click to view unformatted code.