incompatible type error w/ file

Can someone help me - I keep getting an error (incompatible types) when I try to check the lastModified date of a file whose name is stored in an array.

class ListRead{

publicstaticvoid main(String[] args){

File nfile;

long n;

long change;

String myFile ="c:/apache2triad/htdocs/refresh/applet refresh/folderA";

File f =new File(myFile);

String[] files = f.list();

for (int i=0;i<files.length;i++){

System.out.println(files[i]);

nfile = files[i];

n = nfile.lastModified();

}

}

}

>

[1074 byte] By [mikeyrya] at [2007-10-2 9:54:03]
# 1
String doesn't have a lastModified method.Change this line:String[] files = f.list();to File[] files = f.listFiles();
FuzzyOniona at 2007-7-16 23:58:54 > top of Java-index,Java Essentials,New To Java...