.java
Main
class, except for problems where the main
function is not requested. In the latter case, place all your code in a Solution
class (sorry or the inconvenience!).class Main {
public static void main (String args[]) {
System.out.println("Hello world!");
}
}
import java.io.*;
import java.util.*;
class Main {
public static void main (String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
System.out.println(a + b);
}
}