title: Junit Test Case About Scanner
body: <pre><code>public static int programContinueSelect() {
      System.out.println("Do you want to continue? (Y/N)");
      Scanner cin3 = new Scanner(System.in);
      String s1 = cin3.nextLine();
      char c1 = s1.charAt(0);
      if(Input == 89 || Input == 121)
         {
          return 0;
         }
      else
         {
          return 1;
         }
  }
  </code></pre>
  
  <p>I have read different posts about the scanner, however I still haven't solved the problem.</p>
  
  <p>How could I test this kind of situation?</p>