How to get the current working directory in Java?
I want to access my current working directory using Java. My code: String currentPath = new java.io.File(“.”).getCanonicalPath(); System.out.println(“Current dir:” + currentPath); String currentDir … Read more