Saturday, February 18, 2006

Total.java



      public class Total
{
	public static void main(String[] args)
	{
		int total = 0;
		
		for(int i = 0; i < args.length; i++)
			total += Integer.parseInt(args[i]);
			
		System.out.println("total equals " + total);		
	}
}

0 Comments:

Post a Comment

<< Home