Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML
 
 
Hot Web Programming Job

 

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials

Core Java
JSP
Servlet
JDBC
Hibernate
Struts 1
Struts 2
JSF
Spring
J2EE
J2ME
Web Services
Ajax
Dojo
MySQL
Latest Comments
Contents are not d
Please Use JAVA no
hidden tag in orku
Getting good knowl
Why the output on
  All Comments...
 

 

 
Struts Tutorials
*Stuts TOC
*Apache Struts Introduction
* Struts Controller
* Struts Action Class
* Struts ActionFrom Class
* Using Struts HTML Tags
*Struts Validator Framework    
*Client Side Address Validation    
*Struts Tiles
*tiles-defs.xml
*Struts DynaActionForm
*Struts File Upload
*Struts DataSource
*AGGREGATING ACTIONS
*Internationalization
Struts Resources
*Struts Books
*Struts Articles
*Struts Frameworks
*Struts IDE
*Struts Alternative
*Struts Links
*Struts Presentations
*Struts Projects
*Struts Software
*Struts Reference
*Struts Resources
*Other Struts Tutorial
Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Have tutorials?
Add your tutorial to our Java Resource and get tons of hits.

We offer free hosting for your tutorials. and exposure for thousands of readers. drop a mail
roseindia_net@yahoo.com
 
   

 
Join For Newsletter

Powered by groups.yahoo.com
Visit Group! Post Questions!

Java Learn Java In A Day AddNumbers

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

11 comments so far (post your own) View All Comments Latest 10 Comments:

It was simple and clear and explanatory.

Posted by Sann on Monday, 04.6.09 @ 19:50pm | #86563

A very very good website for learning any technology.

I want to appreciate every one in your team whole heartly for their extra-ordinary work.

Keep up the good work.

Posted by G Ravi Kumar on Saturday, 04.4.09 @ 12:09pm | #86494

public class AddNumbers{
public static void main(String[] args) {
System.out.println("Addition of two numbers!");
int a = Integer.parseInt(args[0]);
int b = Integer.parseInt(args[1]);
int sum = a + b;
System.out.println("Sum: " + sum);
}
}

Posted by harish on Thursday, 12.4.08 @ 00:58am | #82356

your programm is very fine.

Posted by bhism pratap singh on Monday, 10.6.08 @ 11:22am | #80919

Addition of two numbers!
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at addnumbers.main(addnumbers.java:4)


why do that ,,must print the sum when add two number

Posted by bolbol on Monday, 09.22.08 @ 15:05pm | #80597

Hii, cant we just pass a numeric array ?

like public static void main (int[] numarry)
.........
....
...
...
}

Posted by Jengo on Tuesday, 06.3.08 @ 13:17pm | #61935

public static void main(String[] args) {
int a = 5;
int b = 7;
System.out.println("Addition of two numbers!");
int sum = a + b ;
System.out.print("Sum is: "+sum);
}
}

Posted by khalid on Tuesday, 03.11.08 @ 14:55pm | #52283

it happens wen u havent passed the arguments..

at run time,entere like java AddNumbers 10 20 and not just javaAddNumbers

Posted by Anand on Wednesday, 11.28.07 @ 16:35pm | #40828

arter compiling o/p is error: cannot read: Add.java
and at run time:
Exception in thread "main" java.lang.NoClassDefFoundError: Add

Posted by srinivas on Saturday, 10.20.07 @ 15:37pm | #34447

Using jdk 1.6 this code returns.

Addition of two numbers!
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at addnumbers.main(addnumbers.java:4)

Posted by Leadgolem on Saturday, 06.9.07 @ 11:00am | #18695

send clear java tutuorial

Posted by suresh on Monday, 06.4.07 @ 17:49pm | #18182

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2007. All rights reserved.