/**
* A simple application that prompts the user for a String
* and attempts to convert it to a double
*
* @author Professor David Bernstein, James Madison University
* @version 1.0
*/

public class NumberParser
{
   public static void main (String[] args)
   {
      double	value;
      int 		i;
	 
	   for (i = 0; i < args.length; i++)
	   {
	   try 
		{
		  value = Double.parseDouble (args[i]);
		  System.out.println (args[i] + " is a number");
		}
		catch (NumberFormatException nfe)
		{
		  System.out.println (args[i] + " is not a number");
		}
	 } // end for
  } // end main
} // end class