블로그 이미지
암초보

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

Notice

Tag

05-09 04:59
2015. 9. 23. 17:49 프로그래밍/Java

Path = Paths.get("/aaa/bbb/ccc/ddd");

Path.getNameCount(); => returns 4

Path.getName(0) => returns "aaa"

Path.getName(3) => returns "ddd"



참고 : https://docs.oracle.com/javase/tutorial/essential/io/pathOps.html


'프로그래밍 > Java' 카테고리의 다른 글

StringBuilder와 StringBuffer 차이  (0) 2013.12.16
스레드 풀 활용  (0) 2013.10.31
Callable 과 Thread  (0) 2013.10.31
Comparator & Comparable 이용한 정렬  (0) 2013.05.20
java.util.ConcurrentModificationException  (1) 2013.05.15
posted by 암초보