import java.io.*; class Demo { public static void main(String[] args) throws IOException { File f = new File("D:\\Cyber.txt"); if(f.createNewFile()) { System.out.println("File Successfully Created"); } else { System.out.println("File is Already Exist"); } } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter