Expert Answer

13) Complete the following method (12 points): public void printoceanByMaxDepth(stringtl oceanNames, int [ ] maxDepthsMe ters) { … } Assume names and maximum depths of all oceans are unique, and maxDepthsMeters [ contains the maximum depth of oceanNames[i for any i. Your method should first use an assertion to make sure the two input arrays have the same length. Then print one line for each ocean in oceanNames, like the following: Maximum depth of Indian Ocean is 8047 meters. The output should be in ascending order by depth. ZERO POINTS FOR ANY SOLUTION THAT RUNS IN O(n2) TIME OR WORSE. Show transcribed image text

Expert Answer

13. Consider the following declaration of the local variablemyInt. int myInt = 47; If I execute the statement myInt = 53; willany stack values change? yes No answer text provided. No answertext provided. no