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:
at the terminal, when i try to test it, i get the result : [I@f7e6a96 instead of {3, 3, 3}
and idea why this is happening?