title: How to initialize List<String> object in Java?
body: <p>I can not initialize a List as in the following code:</p>
  
  <pre><code>List&lt;String&gt; supplierNames = new List&lt;String&gt;();
  supplierNames.add("sup1");
  supplierNames.add("sup2");
  supplierNames.add("sup3");
  System.out.println(supplierNames.get(1));
  </code></pre>
  
  <p>I face the following error:  </p>
  
  <blockquote>
    <p>Cannot instantiate the type <code>List&lt;String&gt;</code></p>
  </blockquote>
  
  <p>How can I instantiate <code>List&lt;String&gt;</code>?</p>