//Sample02_01.java import java.io.File; class Sample02_01{ public static void main(String[] args){ File file = new File("dir01/pathname.txt"); String strPath = file.getPath(); System.out.println(strPath); } }