Problem with import java.nio.file

Why does this line not work?

import static java.nio.file.AccessMode.*;

Eclipse says:

The import java.nio.file cannot be resolved

Here is the whole program:

import static java.nio.file.AccessMode.*;

public class CheckFileAccessibility {
 public static void main(String[] args) {

 }
}

I follow the official Java tutorial here: http://java.sun.com/docs/books/tutorial/essential/io/check.html

+3
source share
1 answer

Look at the chapter

+6
source

Source: https://habr.com/ru/post/1746271/


All Articles