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
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
Get step-by-step solutions from verified subject matter experts
