Where is java.nio.file

前端 未结 1 489
醉酒成梦
醉酒成梦 2021-02-19 08:59

I am reading java documentation that tells me there should be a java.nio.file namespace. But when I attempt to import it the precompiler is complaining that it doesn\'t exist.

相关标签:
1条回答
  • 2021-02-19 09:55

    java.nio.file is coming in Java 7. It's not in Java 6 or before.

    You must be reading the JDK7 docs.

    Until then, you're stuck with the steaming heap of unpleasantness that is java.io.File.

    0 讨论(0)
提交回复
热议问题