title: java Loose Coupling avoid using implemnetation types like 'ArrayList'; Use the interface instead
body: <p>WE have this app for coding standards called Sonar.  I have this one function that returns an ArrayList and sonar is says "java Loose Coupling avoid using implemnetation types like 'ArrayList'; Use the interface instead"</p>
  
  <p>For example if i do this, sonar gives that error.</p>
  
  <pre><code>    public ArrayList&lt;String&gt; test()
         {
         ArrayList&lt;String&gt; testing = new ArrayList&lt;String&gt;();
          return testing;
          }
  </code></pre>
  
  <p>I  am not sure how to correct the sonar message to use an interface instead.  </p>
  
  <p>Any suggestions would help.</p>