title: Checking for 5 punctuation in a list of characters
body: <p>How to find if there is a " , " " ? " " ! " " ; " " . " in a list of characters the user must enter, I made a while loop and i broke it when the user enters any number from 0 to 9 .. </p>
  
  <p>Sample run : </p>
  
  <pre><code>Enter any character (a digit 0-9 to stop): a B , R x u ! @ . C W 2
  The list you entered contains 3 punctuations signs. 
  </code></pre>
  
  <p>part of what i have done</p>
  
  <pre><code>    int count = 1;
      while ( count &gt; 0 )
      { 
          Scanner input = new Scanner(System.in);
          System.out.print("Enter any character and a digit 0-9 to stop: ");
          char ch = input.next().charAt(0);
          if ( ch&gt;=0 &amp;&amp; ch&lt;=9)
             break;
      }
  </code></pre>
  
  <p>original q. :</p>
  
  <blockquote>
    <p>program that keeps prompting the user to enter a character different than a digit. The first digit
    entered by the user stops the input and the program should then display the number of punctuations
    characters entered (one of this list ! . , ; ?). When none is found, display a message “Characters entered
    without punctuation”.</p>
  </blockquote>