public static int maxLength(Collection strings) {
    int max = 0;
    for (final Object o : strings) {
      String string = (String) o;
      max = Math.max(max, string.length());
    }
    return max;
  }
Centers the given string on the <code>PrintWriter</code>

@param s the string to center
@param pw the <code>PrintWriter</code> to print with
geode-junit/src/main/java/perffmwk/Formatter.java