title: java programs about checking non numeric numbers
body: <p>Basically if I put non numeric number it should show like since I put non-numeric number try again with numeric number. I know I'm supposed to use <code>isDigit</code> but I don't know where to put it or how to use it properly. 
  When I say non-numeric number, it could be English alphabet or anything other than integer number.</p>
  
  <pre><code>public static void main(String[] args)
  {    
      int again = 1;
      while (again == 1)                          
      {
  
          Scanner scan = new Scanner( System.in );
  
          double average = 0;
          int total = 0;
  
          System.out.println( "Enter your digits to calculate average and total digits. ");
          String score = scan.nextLine();
  
  
          total = Summation(score);
          average = (double)total / score.length();
  
          System.out.print ("TOTAL : " + total + "\n");
          System.out.print ("AVERAGE : " + average + "\n");
  
         System.out.println( "Play again? Press 1 to play ");
         again = scan.nextInt( );
      }
      System.out.println( "Bye~~ ");
  }
  
  private static int Summation(String score)
  {   
  
      char[] charArr = score.toCharArray();
      int[] intArr = new int[score.length()];
      int total = 0;
      int j = 0;
  
      for (int i = charArr.length - 1; i &gt;= 0; i--)
      {
          System.out.println(charArr[i]); // Display the digits in a reversed order
      }
  
      for (int i = 0; i &lt; charArr.length; i++)
      {
          // Add every individual digit to find the sum
          intArr[i] = Character.getNumericValue(charArr[i]);
          // Converting to intArray from charArray
          total = intArr[i] + total;
      }
  
      return total; // Return the total number
  }
  </code></pre>