title: comparing two files character by character
body: <p>here is my code:</p>
  
  <pre><code>public static void main(String[] args) {
      Scanner console = new Scanner(System.in); 
      System.out.print("Type first file name to use: ");
      String filename1 = console.nextLine();
      System.out.print("Type second file name to use: ");
      String filename2 = console.nextLine();
      Scanner input1 = new Scanner(new File(filename1));
      Scanner input2 = new Scanner(new File(filename2));
      String s1 = input1.next();
      String s2 = input2.next();
      boolean similar=true;r
  while(!input1.hasNext()&amp;&amp;!input2.hasNext()){
  // this is where i am stuck. i need to compare the lines character by character, but i'm not sure how to do so. i can't use buffer method, or any really advanced methods since i am just a beginner, so sticking to the basic loops (while, iff, for.. ) is the only option i have
  } 
  </code></pre>
  
  <p>the program should prompt the user to enter two file names and prints true or false depending on whether or not the files have the same contents.It should check the files character by character and ignore difference (upper case and lower case) in the case of the characters that are letters. thank you.</p>