create new file java.io.FIle code example Example: java create file File filename = new File(filepath)