Java System property get current working directory

Description

Java System property get current working directory

public class Main {
  public static void main(String[] args) throws Exception {
    String workingDir = System.getProperty("user.dir");
    System.out.println(workingDir);
  }//from   ww w .j  a  v  a2  s . co  m
}



PreviousNext

Related