title: Why does Collections.max() not return actual max value for a Collection of String?
body: <pre><code>ArrayList&lt;String&gt; dirNo = new ArrayList&lt;String&gt;();
  
  dirNo.add("1");
  dirNo.add("2");
  dirNo.add("3");
  dirNo.add("4");
  dirNo.add("5");
  dirNo.add("6");
  dirNo.add("7");
  dirNo.add("8");
  dirNo.add("9");
  dirNo.add("10");
  dirNo.add("11");
  
  System.out.println("max : " + Integer.parseInt(Collections.max(dirNo)));
  </code></pre>
  
  <p>After executing above code, print <strong>9</strong> as output.</p>
  
  <p>But actually max value should be <strong>11</strong>.</p>
  
  <p>Why am I getting <strong>9</strong> as max ? </p>