How can I create an empty folder in Java?
File f = new File("C:\TEST"); try{ if(f.mkdir()) { System.out.println("Directory Created"); } else { System.out.println("Directory is not created"); } } catch(Exception e){ e.printStackTrace(); }
2.1m questions
2.1m answers
60 comments
57.0k users