Creating a Path object using FileSystems : Paths « JDK 7 « Java
- Java
- JDK 7
- Paths
Creating a Path object using FileSystems
import java.nio.file.FileSystems;
import java.nio.file.Path;
public class Test {
public static void main(String[] args) {
Path path = FileSystems.getDefault().getPath("/home/docs/status.txt");
}
}
Related examples in the same category