Answers for "what is a pathway in java program"

3

get file path java

File file = new File("yourfileName");
String path = file.getAbsolutePath();
Posted by: Guest on February-24-2020
0

get absolute path from relative java

String absolutePath = FileSystems.getDefault()
  .getPath(mayBeRelativePath)
  .normalize()
  .toAbsolutePath()
  .toString();
Posted by: Guest on December-11-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language