Here's part of my 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());
The method currentCommand.getLsPath()
returns a string, which is mendatory for the File Constracture, and still I get this error: File cannot be resolved to a type
What is the problem?