How return the length value of the largest array through method in Java - Stack Overflow