1. class MakeFile {2. public static void main(String[] args) {3. try {4. File directory = new File(”d”);5. File file = new File(directory,”f”);6. if(!file.exists()) {7. file.createNewFile();8. }9. } catch (IOException e) {10. e.printStackTrace11. }12. }13. }