实例:File file = new File("C:\\Windows");file.getAbsolutePath();API内描述:String -- getAbsolutePath() 返回此抽象路径名的绝对路径名字符串。