Question: The method String sumString(int one, int two) Is intended to return a String representing the sum of one and two. For example: sumString(6, 10) Should
The method
String sumString(int one, int two)
Is intended to return a String representing the sum of one and two. For example:
sumString(6, 10)
Should return a String of the form
6 + 10 = 16
But it is currently returning a String of the form
6 + 10 = 610
Your job is to debug this method so that it returns the proper String!
public String sumString(int one, int two) { return one + " + " + two + " = " + one + two; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
