Java FileSystem get from Path

Description

Java FileSystem get from Path

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 ww w . ja  va  2 s  .  c  o m*/
}



PreviousNext

Related