1. Get Current Working Directory
1 2 3 4 5 6 7 8 | package bloggerpostsnippetjava; public class CurrentWorkingDirectory { public static void main( String[] args ) { String cwd = System.getProperty("user.dir"); System.out.println("Current Directory: " + cwd); } } |
Results:
Current Directory: D:\work-netbeans\BloggerPostSnippetJava
댓글 없음:
댓글 쓰기