Get real path from a path in Java
Description
The following code shows how to get real path from a path.
Example
import java.nio.file.Path;
import java.nio.file.Paths;
/*from w w w . j a v a 2 s. c om*/
public class Main {
public static void main(String[] args) throws Exception {
Path path = Paths.get("users.txt");
System.out.println("toRealPath: " + path.toRealPath());
}
}