title: While loop program doesn't function properly
body: <p>My while loop seems to have a problem which i can't find. When i run the program it shows that it runs but nothing happens. Help.</p>
  
  <pre><code>import java.util.Scanner;
  
  public class Excersice8 {
      public static void main(String arg[]) {
          String answer = null;
          Scanner input = new Scanner(System.in);
  
          while (!"Done".equals(answer));
          {
              System.out.println("Do you want to continue?");
              answer = input.nextLine();
              if (!"Done".equals(answer)) {
                  System.out.println("Enter the value");
                  char ch1 = input.next().charAt(0);
                  System.out.println();
                  if ((ch1 &gt;= '0' &amp;&amp; ch1 &lt;= '9'))
                      System.out.println("Number ");
                  else if ((ch1 &gt;= 'a' &amp;&amp; ch1 &lt;= 'z'))
                      System.out.println("Small Character");
                  else if ((ch1 &gt;= 'A' &amp;&amp; ch1 &lt;= 'Z'))
                      System.out.println("Capital Character");
                  else
                      System.out.println("Symbol");
              }
          }
  
          System.out.println("Thank you");
      }
  }
  </code></pre>