With the code below I am getting an error reading long cannot be dereferenced, how can I solve this problem?
import java.io.File;
public class TestingClass {
public static void main( String [] args ) {
File actual = new File(".");
for( File f : actual.listFiles())
for( File e : actual.listFiles()){
{
if (f.length().equals(e.length())) {
System.out.println (e.getName() + f.length());
}
}
}
}
}