Got the desired result!! i was supposed to type in System.out.println(java.util.Arrays.toString(maxEnd(new int[]{1, 2, 3})));
Thanks a lot for the help! :)
Type: Posts; User: hemla
Got the desired result!! i was supposed to type in System.out.println(java.util.Arrays.toString(maxEnd(new int[]{1, 2, 3})));
Thanks a lot for the help! :)
also i get the error, cannot find symbol variable nums after typing in System.out.println("[I@3487a5cc "+ java.util.Arrays.toString(nums))
could u please correct it? need it really urgent and i...
You mean: System.out.println("[I@3487a5cc "+ java.util.Arrays.toString(nums)); ? :S
i have to write a code to verify the following:
maxEnd(new int[]{1, 2, 3}) -> {3, 3, 3}
maxEnd(new int[]{1, 3}) -> {3, 3}
maxEnd(new int[]{3}) -> {3}
Here's my code:
public class OneB {...