Here is the tutorial for using the getName() and getParent() in File.
--------------------------------------
Output:
--------------------------------------
The name of the file is FileNameParent.java
The parent of this file is C:\java
--------------------------------------
Output:
--------------------------------------
The name of the file is FileNameParent.java
The parent of this file is C:\java
No comments:
Post a Comment