Question: the returnis missing and write in java code. today and tomorrow's homework problems involve reverse engineering. Instead of giving you a problem specification, we're going

the return""is missing and write in java code. the return""is missing and write in java code. today and tomorrow's homework

today and tomorrow's homework problems involve reverse engineering. Instead of giving you a problem specification, we're going to let you work it out on your own by using our test suites to guide you. Let me help get you started! 2. 3 1 public class Mystery { public static String mystery (String first, int second) { if (second >= 0) { return first.substring(e, second); } else { return; 4 5 6 7 B > Failed i tests. Here is one: Testing mystery (String first = "test", int second = -2) failed: Solution returned: "st" Submission returned: "" 0:00

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!