//displays the current working path of the java program public class currentdir { public static void main(String[] args) { System.out.println("Current parent directory of this program:\n" + System.getProperty("user.dir")); } }