Else statement is missing,
May 28, 2009 at 2:49 PM
if(!f.exists()){ f.createNewFile(); System.out.println("New file \"myfile.txt\" has been created to the current directory"); } else{System.out.println("The Specified file is already exist");}
View All Comments
| View Tutorial