Click here to watch in Youtube :
FileDemo.java
Click the below link to download the code:FileDemo.java
public class FileDemo
{
public static void main(String[] args)
{
String workingDir = System.getProperty("user.dir");
System.out.println("Current working directory : " + workingDir);
}
}
OutputCurrent working directory : D:\eclipse\workspace\JavaIODemo
No comments:
Post a Comment