Problems
Java MyLong Add
Java MyLong Add
Implement a wrapper class MyLong.
class MyLong // Java
{`
private long a; // one private variable
MyLong(long a) // Constructor
public String toString() // Print a variable of type MyLong
public MyLong Add(MyLong b) // Add MyLong value
public MyLong Add(long b) // Add long value
};
Input
Two integers a and b (-1018
≤ a, b ≤ 1018
).
Output
Print the value of a + b + 10.
Input example #1
2 3
Output example #1
15