Getting the Current Working Directory in Java

Ads
 

Getting the Current Working Directory in Java

In this section, you will learn how to get the current working directory.

In this section, you will learn how to get the current working directory.
C:\nisha>javac GetCurrentDir.java

C:\nisha>java GetCurrentDir
Current Working Directory : C:\nisha

C:\nisha>

Download this example.

Ads

Ads