 <pre><code>File f1 = new File("FILE_ONE"); File f2 = new File("FILE_TWO"); </code></pre> <p>Try removing the quotes here. You declared FILE_ONE and FILE_TWO as variables earlier in your program, but you aren't calling them. Instead, you've directly called a string "FILE_ONE," which will of course not be found. So replace it with the parameters you passed to CompareFile...</p> <pre><code>File f1 = new File(fILE_ONE2); File f2 = new File(fILE_TWO2); </code></pre> <p>And tell us if that takes care of it.</p>