I would like to test if a file exists, if it does not then inform the user and exit.
For this i did the foll:
File fil = new File(file1);
JOptionPane.showMessageDialog(this,"File1 does not exist");
// How to exit from the code..should it be return
//is there soemthing similar to exit as in shell scripting?