Sunday, November 6, 2011
java program to add 2 numbers
//add this program to your package
class addnum
{
public static void main(String [] args)
{
int number1=Integer.parseInt(args[0]);
int number2=Integer.parseInt(args[0]);
System.out.println(number1+number2);
}
}
/* run the program and enter 2 integer values like,
4 5
output:
9
*/
Subscribe to:
Post Comments (Atom)
-
Hi Guys , In this blog I will share information related to error : can't bind to 'formcontrol' since it isn't a known pr...
-
Hi Guys , This blog is about the error " Target container is not a DOM element. " The full error in the console log is ...
-
Error Blog This blog is about the error Error: Objects are not valid as a React child Problem Statement error on start of...
No comments:
Post a Comment