Showing posts with label directory. Show all posts
Showing posts with label directory. Show all posts

Friday, 4 July 2014

Getting the Current Working Directory in Java

package com.vipul;

public class CurrruntPath {

      /**
      * Getting the Current Working Directory in Java
      * @param args
      */
      public static void main(String[] args) {
            System.out.println("Working Directory = " +
                    System.getProperty("user.dir"));
       

      }

}