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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!