Read two integers and print their sum. This is the classic first program — get comfortable with Scanner input and System.out.println before moving on.
Input / Output
Input: two integers on one line, separated by a space. Output: a single integer — their sum.
Examples
Input
3 5
Expected Output
8
Input
100 250
Expected Output
350
+ 2 hidden tests checked on Submit.
Main.java is the entry point. Add extra classes for OOP exercises — they compile together.
Run your code to see test results here.