title: loading ArrayList<String> from java properties file
body: <p>I'm reading from a properties-file using this method:</p>
  
  <pre><code>public void loadConfigFromFile(String path) {
          Properties prop = new Properties();
          InputStream input = null;
  
          try {
              input = new FileInputStream(path);
  
              prop.load(input);
  
              /*saved like this:*/ //emails: abc@test.com, bbc@aab.com, ..
              String wordsS = prop.getProperty("keywords");
              String emailS = prop.getProperty("emails");
              String feedS = prop.getProperty("feeds");
  
              emails = Arrays.asList(emailS.split(",")); //ERROR !!
              words = Arrays.asList( wordsS.split(","))); //ERROR !!
              feeds = Arrays.asList( feedS.split(",")); //ERROR !!
  
          } catch (IOException ex) {
              ex.printStackTrace();
          } finally {
              if (input != null) {
                  try {
                      input.close();
                  } catch (IOException e) {
                      e.printStackTrace();
                  }
              }
          }
      }
  </code></pre>
  
  <p>the fields to be written are declared as follows:</p>
  
  <pre><code>    private ArrayList&lt;String&gt; emails = new ArrayList&lt;&gt;(
              Arrays.asList("f00@b4r.com", "test@test.com")
      );
  
      private LinkedList&lt;String&gt; words = new LinkedList&lt;&gt;(
              Arrays.asList("vuln", "banana", "pizza", "bonanza")
      );
  
      private LinkedList&lt;String&gt; feeds = new LinkedList&lt;&gt;(
              Arrays.asList("http://www.kb.cert.org/vulfeed",
                      "https://ics-cert.us-cert.gov/advisories/advisories.xml")
      );
  </code></pre>
  
  <p>..so the compiler shows me the following Information, which I don't know how to use:</p>
  
  <blockquote>
    <p>Incompatible types. Required <code>ArrayList&lt;String&gt;</code> but 'asList' was inferred to <code>List&lt;T&gt;</code>: no instance(s) of type variable(s) T exist so that <code>List&lt;T&gt;</code> conforms to <code>ArrayList&lt;String&gt;</code></p>
  </blockquote>
  
  <p>How to circumvent this?</p>