class CommandLine
{
	public static void main(String args[])
	{
		int i,sum=0;
		for (i=0;i<args.length;i++)
		{
			sum += Integer.parseInt(args[i]);
		}
		System.out.println("Sum of numbers is = " +sum);
	}
}

Click here to go back.

Our aim is to provide information to the knowledge seekers.


comments powered by Disqus








Footer1