Challenges easy Sum Two Numbers (Java) 75 XP
Java Challenge

Sum Two Numbers (Java)

Read two integers from standard input (one per line) using Scanner, and print their sum. Note: Java compiles in your browser — the first run takes a few seconds.

Example 1

Input
2
3
Expected Output
5
Main.java
Run the examples to test your code, then Submit to run all hidden tests.
🚀

Create a free account

Sign up free to run and submit solutions, earn points, and unlock badges.

Create Free Account

Already have one? Log in