View Code of Problem 1

import java.util.Arrays;
import java.util.Scanner;
public class Hello {
	public static void main(String args[])
	{	
		Scanner sc = new Scanner(System.in);
		int m = sc.nextInt();
		int n = sc.nextInt();
		System.out.println(m+n);
	}
}

/*
Main.java:3: error: class Hello is public, should be declared in a file named Hello.java
public class Hello {
       ^
1 error
*/

Double click to view unformatted code.


Back to problem 1