which methods I need to use for knowing if there is a file java code example
Example: java test file exist
File tempFile = new File("c:/temp/temp.txt");
boolean exists = tempFile.exists();
File tempFile = new File("c:/temp/temp.txt");
boolean exists = tempFile.exists();