File f = new File(\"C:\\\\Temp\\\\Example.txt\"); f.createNewFile();
On executing, a new file named \"Example.txt\" will be created in the Temp>
Temp>
There is a File.separator system-dependent constant that you should use to provide some portability to your Java code.
File.separator