Getting the Current Working Directory - Java File Path IO

Java examples for File Path IO:Directory

Description

Getting the Current Working Directory

Demo Code


public class Main {
  public static void main(String[] argv) {
    String curDir = System.getProperty("user.dir");
  }/* w  ww .  j  a v a 2  s .c om*/
}

Related Tutorials