Java Path get FileSystem

Description

Java Path get FileSystem

import java.nio.file.Path;
import java.nio.file.Paths;

public class Main {
  public static void main(String[] args) {
    Path p = Paths.get("Main.java");
    System.out.println("getFileSystem: " + p.getFileSystem());
  }/*from w  w  w  .ja v  a  2  s .  c  o m*/
}



PreviousNext

Related