Why i am unable to use Collectors in my code in java Stream? : <pre><code>import static java.util.stream.Collectors.*;
import java.util.*;
import java.lang.*;
//import java.util.Collections;
public class HelloWorld{

 public static void main(String []args){
    System.out.println("Hello World");
    List&lt;String&gt; strings = Arrays.asList("abc", "", "bc", "efg", "abcd","", "jkl");
    List&lt;String&gt; filtered = strings.stream().filter(string -&gt; !string.isEmpty()).collect(Collectors.toList());
    }
}
</code></pre>

<p><strong>output</strong></p>

<pre><code>/tmp/java_tdo3eB/HelloWorld.java:10: error: cannot find symbol
    List&lt;String&gt; filtered = strings.stream().filter(string -&gt; !string.isEmpty()).collect(Collectors.toList());
                                                                                         ^
  symbol:   variable Collectors
  location: class HelloWorld
 1 error
</code></pre>

<p>So i query is why i am unable to use Collectors as i have import that class also</p>
