Skip to content
CampusEduX

Add Two Numeric Strings

Mediumjava
Learn the Concept: Type Casting

Two numbers arrive as text (String). Convert each to an int and print their sum. A cast like (int) does not work here — you must parse.

Input: two lines, each a whole number written as text.

Output: one line — the sum of the two numbers.

Related Problems

Input (stdin)

Output

Run your code to see output here...