//PROGRAM 10-11 import java.io.File; import java.io.IOException; class DemoMembuatFileBaru { public static void main(String[] args) throws IOException { File f = new File("d:/sample.txt"); f.createNewFile(); } }