Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class FolderCreate {
- public static void main(String args[]){
- File f = new File("C:\\TEST");
- try{
- if(f.exists()==false){
- f.mkdir();
- System.out.println("Directory Created");
- }
- else{
- System.out.println("Directory is not created");
- }
- }catch(Exception e){
- e.printStackTrace();
- }
- }
- }
Add Comment
Please, Sign In to add comment