O
O.B.
I'm hoping there is just something syntactically wrong with the
following. I've verified that the file exists, but it keeps saying that
it doesn't. Thoughts?
String filename = "C:\\Java\\j2sdk1.4.2_10\\jre\\bin\\java";
File testFile = new File(filename);
if (testFile.exists()) {
System.out.println(filename + " exists.");
} else {
System.out.println(filename + " does not exist.");
}
following. I've verified that the file exists, but it keeps saying that
it doesn't. Thoughts?
String filename = "C:\\Java\\j2sdk1.4.2_10\\jre\\bin\\java";
File testFile = new File(filename);
if (testFile.exists()) {
System.out.println(filename + " exists.");
} else {
System.out.println(filename + " does not exist.");
}