| 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 | ||||
|
||||
|
|
||||
| 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
|
|
||||||||||||||||||||||||||||||
|
Home | JSP | EJB | JDBC | Java Servlets | WAP | Free JSP Hosting | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs |
||||||||||||||||||||||||||||||
Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.
Copyright © 2007. All rights reserved.
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