Convert Path to String : Paths « JDK 7 « Java
- Java
- JDK 7
- Paths
Convert Path to String
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");
System.out.println(path.toString());
}
}
Related examples in the same category