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"));
       

      }

}

No comments:

Post a Comment