Guest User

Untitled

a guest
Jan 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import java.io.*;
  2. public class FolderCreate {
  3.  
  4. public static void main(String args[]){
  5. File f = new File("C:\\TEST");
  6. try{
  7. if(f.exists()==false){
  8. f.mkdir();
  9. System.out.println("Directory Created");
  10. }
  11. else{
  12. System.out.println("Directory is not created");
  13. }
  14. }catch(Exception e){
  15. e.printStackTrace();
  16. }
  17. }
  18. }
Add Comment
Please, Sign In to add comment