Here you can find the source of maxLength(String... array)
public static int maxLength(String... array)
//package com.java2s; //License from project: Open Source License public class Main { public static int maxLength(String... array) { int i = 0; for (String s : array) if (s.length() > i) i = s.length();// ww w .java2 s . c om return i; } public static int maxLength(double[]... array) { int i = 0; for (double[] a : array) if (a.length > i) i = a.length; return i; } public static int maxLength(int[]... array) { int i = 0; for (int[] a : array) if (a.length > i) i = a.length; return i; } public static int maxLength(int[][]... array) { int i = 0; for (int[][] a : array) for (int[] b : a) if (b.length > i) i = b.length; return i; } }