Tuesday, 27 August 2013

Java Program of Adding 2 Number

This is simple program that add 2 integer number and print the result

class Program
{
public static void main(String []args)
{
System.out.println(2+2);
}
}

OUTPUT
4

System.out.println(2+2) : this line just output the result 4.

No comments:

Post a Comment