@Path format "?" java code example
Example 1: get file path java
File file = new File("yourfileName");
String path = file.getAbsolutePath();
Example 2: get absolute path from relative java
String absolutePath = FileSystems.getDefault()
.getPath(mayBeRelativePath)
.normalize()
.toAbsolutePath()
.toString();