Java示例查找当前目录 Java示例父目录 Java示例比较两个字符串 Java示例查找当前目录 public class Main { public static void main(String[] args) { String curDir = System.getProperty("user.dir"); System.out.println("You currently working in :" + curDir+ ": Directory"); } } Java示例父目录 Java示例比较两个字符串