public static File createTempFile(final String prefix,final String suffix){
  File tempFile;
  try {
    tempFile=File.createTempFile(prefix,suffix);
  }
 catch (  IOException ioException) {
    throw new IllegalStateException(ioException);
  }
  return tempFile;
}

public static File createTempFile ( final String prefix , final String suffix ) { File tempFile ; try { tempFile = File . createTempFile ( prefix , suffix ) ; } catch ( IOException ioException ) { throw new IllegalStateException ( ioException ) ; } return tempFile ; }
creates temporary file with given prefix and suffix .
