Question: Plz help me in java. I have no idea about the shit. Close Wino Score: Sorry, you did not answer the question correctly Answer(s): (Your
Close Wino Score: Sorry, you did not answer the question correctly Answer(s): (Your response(s) are shown below) Try this oddball problem. The code below includes a live object from the Suxprise class, called nystery Click here for the Surprise clas source code: Surprise java Surprise objects have two private instance variables, n and n. The object's secret is revealed only when the values of n andn are equal. Using commands from the Surprise class, figure out a way to get the nystery object to reveal its secret. The revealSeczet method will write the secret to the console, but only when n and n are equal. Note: to get a feel for the problem, see what happens when you make no changes at alltothe nystery object (in other words, get the problem wrong!). That is, simply try to reveal the secret immediately using the revealSecret method. Then, try this method after you use commands from the s upri se class to set n and m to the same value Enter your code in the box below l mystery Surprise (n, m, mystery) 2 int n =n.getX(); 3 int m =m.getM(); 4 mystery. revealSecret RESUBMIT ANSWER orrors This could be caused by
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
