Why do I get the error "File cannot be resolved to a type"?
<p>Here's part of my code</p>

<pre><code>try{

    BufferedReader in= new BufferedReader(new InputStreamReader(System.in));

    while ((line= in.readLine())!="exit"){

    System.out.println("Enter command");
    line=in.readLine();
    Command currentCommand=new Command(line);



    File currentFile= new File(currentCommand.getLsPath());
</code></pre>

<p>The method <code>currentCommand.getLsPath()</code> returns a string, which is mendatory for the File Constracture, and still I get this error: <code>File cannot be resolved to a type</code></p>

<p>What is the problem?</p>
