Comment

dileep
program,
August 20, 2009 at 9:33 AM

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);
}
}
View All Comments | View Tutorial
Related Tutorial and Articles
Java Tips and Examples

Learn Java in a day
Learn Java in a day     ...; In this section, you will learn to write a simple Java program. You just need ... and running java program. Lot of efforts have been made to give easy explanation 

Java Beginners

Output Previous or Next Day of the Month
Output Previous or Next Day of the Month   Please Help! I need to create the following program: Objective of this Program: (1) To learn about having... or previous day: The program should output the next day's or previous day's date 

General

Get first day of week
; In this section, we will learn how to get the first day of ... in the java program. This calendar is used in most of world.  Description of program: The following program helps us in getting the first day of the week 

Java Tips and Examples

Find Day of Month
Find Day of Month       This example explores how to find the day of a month and the day of a week  This example sets the year as 2007 and the day as 181. The example  

Java Beginners

Where to learn java programming language
program in Java. Then you can learn the basics and advance concepts of Java... fast and easily. New to programming Learn Java In A Day Master Java Tutorials...Where to learn java programming language  I am beginner in Java 

Java Beginners

learn
learn  how to input value in java 

Applet Questions

learn
learn  i need info about where i type the java's applet and awt programs,and how to compile and run them.please give me answer 

Java Beginners

Day for the given Date in Java
Day for the given Date in Java  How can i get the day for the user input data ?   Hello Friend, You can use the following code: import..."); String day=f.format(date); System.out.println(day 

Java Tips and Examples

Find the Day of the Week
Find the Day of the Week       This example finds the specified date of  an year and a day... time zone, locale and current time. The fields used:  DAY_OF_WEEK 

Java Tips and Examples

Learn Java - Learn Java Quickly
Learn Java - Learn Java Quickly   ... the function of JVM How to write your First Java program Ok... Development Kit (JDK), then its time to write your first Java program. Create 

Java Beginners

to learn java
to learn java  I am b.com graduate. Can l able to learn java platform without knowing any basics software language.   Learn Java from the following link: Java Tutorials Here you will get several java tutorials 

Java Beginners

Learn java
Learn java  Hi, I am absolute beginner in Java programming Language. Can anyone tell me how I can learn: a) Basics of Java b) Advance Java c) Java frameworks and anything which is important. Thanks 

Java Code Examples

Java date add day
Java date add day In this tutorial, you will learn how to add days to date... to date or subtract days from date) for java applications. Here, we are going to add few days to current date and return the date of that day. For this, we 

Ajax Questions

Advance Java Training Program
Advance Java Training Program  Hi, Can anyone guide me how to study advance Java in few day's  Please visit the following link: Java Tutorials Through the above link, you will get the links of advanced java tutorials 

General

Getting Previous, Current and Next Day Date
Getting Previous, Current and Next Day Date       In this section, you will learn how to get previous, current and next date in java. The java util package provides 

General

Java get Next Day
Java get Next Day       In this section, you will study how to get the next day in java...() provide the string of days of week. To get the current day, we have used 

JDBC-Tutorials

JDBC Training, Learn JDBC yourself
programming language of java then fist learn our following two tutorials: Learn Java in a Day and Master... JDBC Connection Pooling Accessing Database using Java and JDBC Learn how 

Java-Tutorials

Where can I learn Java Programming
Learn Java in a Day Master Java in a Week More links for Java... and time to learn Java in a right way. This article is discussing the most asked question which is "Where can I learn Java Programming?". We have 

JavaScript Questions

java program
java program  Problem 1 Write a javaScript program that would input Employee Name, rate per hour, No. of hours worked and will compute the daily wage... I received already the answer last day thanks for the help...Plz answer 

Java Beginners

Java Program - Java Beginners
Java Program  Hi I have this program I cant figure out. Write a program called DayGui.java that creates a GUI having the following properties... Mnemonic B Add individual event handlers to the your program so that when 

JavaScript Questions

java program
java program  Problem 1 Write a javaScript program that would input Employee Name, rate per hour, No. of hours worked and will compute the daily wage... I received already the answer last day thanks for the help...Plz answer 

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Java-Tutorials

Determining the Day-of-Week for a Particular Date
in word i.e. the Day of Week for a particular date. Here, you can learn about the way of doing that. Following program helps you for showing the current day in word. This program gets the day of the week using Calendar.DAY_OF_WEEK i.e. 

Java Beginners

Java program - Java Beginners
Java program  Dear maam/Sir, I am a 2nd year Computer programming student and we are given an assignment, a program that will show... not that familiar with java environment.. My friend told me that you can help me with my 

Java Beginners

Java Program - Java Beginners
Java Program  Hi I have this program I cant figure out. Write a program called DayGui.java that creates a GUI having the following properties... Setting- cmdBad, Bad, B Add individual event handlers to the your program so 

Java Beginners

Hey Guys really need to learn - Java Beginners
Hey Guys really need to learn  Im a java beginner and i want to know how can i input 3 value.. Wath i mean is in C, to you to be able to input number u will use scanf(%d%d%d, & month, day, year). How can i do this in java 

Java Beginners

Toedter JDateChooser JSpinner change day value by default in java
Toedter JDateChooser JSpinner change day value by default in java  i have a question, by default the JSpinner when you press up or down buttons it changes the month value. There is a way to change the day value, instead 

Java Beginners

Java program? - Java Beginners
Java program?  In order for an object to escape planet's.... The escape velocity varies from planet to planet.Create a Java program which calculates the escape velocity for the planet. Your program should first prompt 

Programming Tutorials

Java zip package - Learn how to use java zip package.
Java zip package In this section we will learn about java.util.zip package of java library. We will also learn how to use the zip API to create and read the zip and gzip files within java program. The zip format is very easy method 

Training

Marvellous chance to learn java from the Java Experts
Marvellous chance to learn java from the Java Experts A foundation course on Java technology which... for Software Development on Java Platform. Learn to implement 

Java Beginners

java program for
java program for   java program for printing documents,images and cards 

Java Beginners

program
program  write a program different between to dates in terms of days in java 

Java Beginners

program - Java Beginners
program  sir..can u tell me wat to do in this program.... i do not know what to do,,,,,, write a program to enter date ( date,month, and year...=parseInt(strMonth) day=parseInt(strDay) year=parseInt(strYr) if (pos1==-1 

General

First Java Program
First Java Program       In this section you will learn how to develop your first Java program... that programLearn to write Hello World Java program at http 

Java Beginners

Java GUI Program - Java Beginners
Java GUI Program  How is the following program supposed to be coded... by Day 7 under a thread in your Team Forum called Week Three Program for 10 points...://www.roseindia.net/java/ Thanks. Amardeep 

Programming Tutorials

Implementation of Day Class
Implementation of Day Class Here we are going to design and implement the class Day. The class Day should store the days of the week. Then test the following operations through the object of the class Day: 1) Set the day. 2) Print 

Swing AWT

Java Program
Java Program  A Java Program that print the data on the printer but buttons not to be printed 

Java Beginners

program
program  WAP a java program to form 1/2+3/4+5/6+7/8 series 

Java Beginners

combo program - Java Beginners
(); f.getContentPane().setLayout(null); JComboBox day=new JComboBox(); JComboBox month...(150,50,60,20); f.add(day); f.add(month); f.add(year); f.setVisible(true 

Java Beginners

a Java program
a Java program    Write a Java program to print even numbers from 2 to 1024? Write a Java program to print ? My Name is Mirza? 100 times? Write a Java program to print Fibonacci Series? Write a Java program to reverse a number 

Java Beginners

program
program  explanation of program on extending thread class   Hi Friend, Please go through the following link: Java Threads Thanks 

Java Beginners

program
program  write a java program to input a no. and print wheather the no. is a special no or not. (special no. are those no whose factorial of the sum of digit of the no is same as the original 

Date Calendar

Java Program - Date Calendar
Java Program  A java program that display calendar.  Hi... JLabel("")); } JButton day; for (int i=1; i<=getLastDay(); i++) { dayPanel.add(day = new JButton(String.valueOf(i 

Java Beginners

How to compile and run Java program
How to compile and run Java program  How to compile and Java program..., For compiling and running the Java program from command prompt you should must have JDK... tutorial Compiling and Running Java program from command line. If Java 

Java Interview Questions

java program
java program  write a program to print 1234 567 89 10 

Java Beginners

java program
java program  write a java program to display array list and calculate the average of given array 

Java Beginners

Java Program
Java Program  java program to insert row in excel sheet after identifying an object 

Java Beginners

java program
java program  java program to implement the reflection of a particular class details like constructor,methods and fields with its modifiers 

Java Interview Questions

java program
java program  how to write an addition program in java without using arithematic operator 

Java Beginners

java program
java program  write java program for constructor,overriding,overriding,exception handling 

Java Beginners

java program
java program  write a java program to display array list and calculate the average of given array 

Java Beginners

java program
java program  Write a program to demonstrate the concept of various possible exceptions arising in a Java Program and the ways to handle them.  ... in Java 

Java Beginners

java program
java program  write a java program to compute area of a circle.square,rectangle.triangle,volume of a sphere ,cylinder and perimeter of cube using method over riding 

Java Beginners

java program
java program  write a java program to compute area of a circle.square,rectangle.triangle,volume of a sphere ,cylinder and perimeter of cube using method over riding 

Java Beginners

java program
java program   Write a program to find the difference between sum of the squares and the square of the sums of n numbers 

Java Beginners

java program
java program  write a program to create text area and display the various mouse handling events 

JavaScript Questions

java program
java program  wap to show concept of class in java 

Java Beginners

Java program
Java program  How to write for drawing a face in java 

Java Beginners

Java program
Java program  How to write code in order to draw a face in java 

Java Beginners

Java program
Java program  How to write code in order to draw a face in java 

Java Beginners

java program
java program  write a java program to read a file which hold email address validate email address tohave formate @.* and replace all .com email address 

Regex Questions

java program
java program  write a java program to create an array of size 10 by taking input from bufferreader and find out the average of array elements from that array 

Regex Questions

java program
java program  write a java program to create an array of size 10 by taking input from bufferreader and find out the average of array elements from that array 

Java Beginners

java program
java program  write a java program to create an array of size 10 by taking input from bufferreader and find out the average of array elements from that array 

Java Beginners

Java Program
Java Program  I want to Write a program in JAVA to display to create a class called MATRIX using a two-dimensional array of integers. Perform the addition and subtraction of two matrices. Help me 

Applet Questions

java program
java program  i want a applet program that accepts two input strings using tag and concatenate the strings and display it in status window. please give mi he code for this in core java 

Applet Questions

java program
java program  i want a applet program that accepts two input strings using tag and concatenate the strings and display it in status window. please give mi he code for this in core java 

Applet Questions

java program
java program  i want a applet program that accepts two input strings using tag and concatenate the strings and display it in status window. please give mi he code for this in core java 

Java Interview Questions

program in java
program in java  write a reverse program in java using string buffer.the input and out put as follows. input- hi good mornig out put-ih doog ginrom 

Java Beginners

java program
java program  Develop the program calculatePipeArea. It computes the surface area of a pipe, which is an open cylinder. The program accpets three values: the pipes inner radius, its length, and the thickness of its wall 

Java Beginners

java program
java program  . Develop the program calculatePipeArea. It computes the surface area of a pipe, which is an open cylinder. The program accpets three values: the pipes inner radius, its length, and the thickness of its wall 

Java Beginners

java program
java program  . Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any type of numeric values and returns the results 

Java Beginners

Java program
Java program  Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any type of numeric values and returns the results 

Java Beginners

java program
java program   A B C D E F F E D C B A A B C D E E D C B A A B C D D C B A A B C C B A A B B A A A java program to display above triangle 

Java Beginners

java program
java program  write a program to create server and client such that server receives data from client using BuuferedReader and sends reply to client using PrintStream 

Spring Framework

Learn Features of Spring 3.0
. The Spring 3.0 Framework is released with the support of Java 5. So, you can use all the latest features of Java 5 with Spring 3 framework. The first... and released to simplify the development of Enterprise Java applications 

Java Beginners

java program
java program  voter or non voter display 

Java Beginners

program
is working in Java department and salary is 10000". Instantiate the Employee class 

JavaScript Questions

a java program
a java program  Write a java program that accepts positive numbers... through the link may, this will be helpful for you http://www.roseindia.net/java/thread/java-multithreading-example.shtml Thanks 

Java Beginners

A java Program
A java Program  Write a java program, which provides a text area with horizontal and vertical scrollbar.Type some lines in the text area and use scrollbars to move the text within the text area.Read a word in a text field 

Java Beginners

java program
java program  write a program showing two threads working simultanously upon two objects(in theater one object "cut the ticket" andsecond object "show is the seat 

Java Beginners

java program
java program  . Develop a program that computes the distance a boat travels across a river, given the width of the river, the boat's speed perpendicular to the river, and the river's speed. Speed is distance/time 

Java Beginners

java program
java program  write a program that accepts only 3 integer values as command line arguments.print the values enter by the user. handle ArrayIndexOutofbounds exception and number format exception by providing appropriate message 

Java Beginners

java program
java program  Write a program that computes loan payments. The loan can be a car loan, a student loan, or a home mortgage loan. The program lets the user enter the interest rate, number of years, loan amount, and displays 

Java Beginners

java program
java program  write a java program to read a file content into a string object using available and read methods of java bufferedinputstream.   Please visit the following link: http://www.roseindia.net/java/example/java 

Java Beginners

java program
java program  write a java program which shows how to declare and use STATIC member variable inside a java class.   The static variable are the class variables that can be used without any reference of class. class 

Java Beginners

Java program
Java program  Write a Java program that demonstaress multiple inheritance.   Java does not support Multiple Inheritance but you can show... the following link: http://www.roseindia.net/java/language/inheritance.shtml 

Java Beginners

java program
java program  accept two numbers and print their hcf 

Java Beginners

program in java
program in java  a program to develop a client, server application to satisfy the requests from multiple clients 

Java Beginners

program in java
program in java  a program to develop a client, server application to satisfy the requests from multiple clients 

Java Beginners

java program
java program  Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g â?¢ t in t time units 

Java Beginners

java program
java program  Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g ? t in t time units 

Java Beginners

java program
java program  Hi, can any one solve this program for me. Q.In a knock-out tennis tournament(Singles). (A)N players participate. (B)construct a data structure to represent the results optimized to find the winners. (C 

Java Beginners

Java Program
Java Program  Write a Java program so that when the program is executed, a window will appear with white background. The window should be of size 400x400 pixels. Then when the user clicks at the window, a circle of size 20 

Java Beginners

Java Program
Java Program  Write a Java program so that when the program is executed, a window will appear with white background. The window should be of size 400x400 pixels. Then when the user clicks at the window, a circle of size 20 

Java Beginners

java program
java program  write a java script program that would input the ff:Student Name,Average,Tuition Fee and output Total Tuition Fee. Formula: Total Tuition Fee=Tuition Fee-Discount If average is: 95-100 100% discount 90-94 25% 85-89 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.