I’m creating a class that implements DirectoryStream so I can iterate through a directory. However, I am not able to get beyond compile time errors because, when I try to import “java.nio.file”, it states “cannot find symbol – class file”. Does anyone have a clue why?
import java.nio.file;
^ to ^ is highlighted red when I compile the file.
it should be
java.nio.fileis a package not a class