I want to access my current working directory using java.
My code :
String current = new java.io.File( \".\" ).getCanonicalPath(); System.ou
The following works on Java 7 and up (see here for documentation).
import java.nio.file.Paths; Paths.get(".").toAbsolutePath().normalize().toString();