Comment

khalid
simple,
March 11, 2008 at 2:55 PM

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);
}
}

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Tips and Examples

Learn Java in a day
Learn Java in a day   ... will learn to write a simple Java program. You just need  a simple text... easy explanation of java concepts through simple programs. We hope 

Java-Tutorials

Easiest way to learn Java
There are various ways to learn Java language but the easiest way to learn..., video tutorials and lectures that help beginners learn in Java. This tutorials..., Java classes, etc are covered. To make it easy for novices to learn 

Java-Tutorials

Learn Java in 21 days
Anyone can learn Java in 21 days, all they need is dedication and concentration. Java Guide at RoseIndia can help you learn Java in 21 days. The course... program by watching a Java expert create it. In order to learn Java in 21 days 

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... the if...then...else construct and (2) to start using some of the Java API's, by using the String 

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 Beginners

Simple Java Projects
Simple Java Projects  Hi, I am beginner in Java and trying to find Simple Java Projects to learn the different concepts on Java. Can anyone tell me where to get it? Thanks 

Java Beginners

learn
learn  how to input value in java 

Java-Tutorials

Simple Java Programs for Beginners
RoseIndia brings you simple Java programs that can be used and downloaded..., Java servlet, wrapper class, Core Java, etc can easily be found here. Every day... in learning the Java language can opt for these simple Java programs 

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 

General

Get first day of week
Get first day of week       In this section, we will learn how to get the first day of ..._package>java FirstDayOfWeek Day of week: 7 Sunday 

Java-Tutorials

How to learn Java easily?
If you are wondering how to learn Java easily, well its simple, learn... a simple language and easy way to understand and learn the language. Java on its... Java learning. The students opting to learn Java are of two types, either 

Java-Tutorials

Learn Java
There is a need to learn Java programming in today?s world as it has become..., there is need of Java, Hence it become more important for a programmer to learn... and server. If you are in need to learn Java quickly then the best way to achieve 

Java Beginners

How can I learn Java?
concepts of Java. All these things you can find in our Learn Java in a day section...How can I learn Java?  Hi, I have just completed a course in HTML.... Now I want to learn Learn Java programming and become the expert in Java 

Java Beginners

Where to learn java programming language
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 and want to learn Java and become master of the Java programming language? Where 

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 

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-Tutorials

Learn Java in 24 hours
Learning Java programming language is very simple especially for developers... that will help you go through the simple core java coding and details that will help... find it easy to understand the example. To learn Java in 24 hours, you must clear 

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-Tutorials

Simple Form in Java
Simple Form in Java       This is a simple program of java awt package which constructs a look like a form by using various java component. In this section, you will learn how 

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 

Java-Tutorials

How to learn Java?
If you are want to be a Java developer in future and are wondering how to learn Java language than there are two ways you can do that. One is the classroom... training. A young developer who is seeking a career in Java can learn the language 

Java Beginners

How to learn programming free?
, Here are the tutorials: Beginners Java Tutorial Learn Java in a day Master Java...How to learn programming free?  Is there any tutorial for learning Java absolutely free? Thanks   Hi, There are many tutorials on Java 

Java-Tutorials

Learn Java online
can learn at his/her pace. Learning Java online is not difficult because every...Learning Java is now as easy as never before. Many websites today provide the facility of learning Java programming online by providing enough material like 

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 

Java-Tutorials

Learn Java Programming
in it, Learn Java programming online with tutorials and simple examples that explains every single code. The online learning of Java begins with simple example... who would prefer to learn the language in as simple manner as possible. Java 

Programming Tutorials

developing simple web service
: The Web Services Invocation Framework (WSIF) is a simple Java API...Open Source web services tool in java   .../ About Axis: Apache Axis is an implementation of the Simple Object 

Java Beginners

How much time it takes to learn Java
, You can learn the basics of Java in a day. Read our tutorial Learn Java in a day...How much time it takes to learn Java  Hi, As a beginner in programming how much time it will take to learn Java programming? I have little 

Java-Tutorials

Learn Java for beginner
and is the main reason behind its popularity. More and more students are opting to learn Java... more. One way to learn Java is through online training. Here a beginner in Java... helps you to learn Java and clear your basic concepts. Once your concepts 

Java-Tutorials

Learn Java for beginners
of their home and become a Java professional in no time. To learn Java, a beginner has... on expanding and adding new codes every day, this creates a problem for Java... by anybody. If a beginner in Java opts to learn Java online, he/she can get 

JavaScript Tutorial

Simple Calculator Application In Java Script
Simple Calculator Application In Java Script       In this article you learn... Calculator The objective of this project is  learn how to write a simple 

Hibernate Questions

Hibernate Simple Program Using Java Application with Eclipse
Hibernate Simple Program Using Java Application with Eclipse  How to write Hibernate Simple Program Using Java Application with Eclipse? I wish to learn Hibernate using very popular Eclipse IDE. Share me the best tutorial link 

Java Beginners

Simple FTP upload in Java
Simple FTP upload in Java  How to write a program for Simple FTP upload in Java? Any code example of Simple FTP upload in Java will be very helpful for me. Thanks 

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 Beginners

simple pgm
simple pgm  a java program which uses super class 

Java Beginners

simple calculator - Java Beginners
simple calculator  how can i create a simple calculator using java codes?  Hi Friend, Please visit the following link: http://www.roseindia.net/java/example/java/swing/calculator-in-swing.shtml Thanks 

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 Beginners

Simple java applet
Simple java applet  Create a Java applet to display your address on the screen. Use different colors for background and text   Please visit the following link: Applet Examples 

JSP Servlet Questions

simple java search engine
simple java search engine  i have already downloaded the project simple java search engine.but i am not able to run it.can anyone help me.i have.... ABSTRACT Title : Simple Search Engine System Specification: The system on which 

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 

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 

Spring Framework Questions

java spring simple application
java spring simple application  hai I have design a simple application in this I always found class not found exception. I am sendig code as follows please resolve this and send me.my directory structure is as follows Project 

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

Simple Java Calculator - Java Beginners
Simple Java Calculator  Write a Java program to create simple Calculator for 4 basic Math operations, Addition, Subtraction, Multiplication..., Please visit the following link: http://www.roseindia.net/java/example/java 

Java Beginners

simple code - Java Beginners
simple code  to input a number and check wether it is prime or not and print its position in prime nuber series.  Hi friend, Code to help in solving the problem : import java.io.*; class PrimeNumber { public 

Java Beginners

Simple ATM Java Code...
Simple ATM Java Code...  You are required to write a Graphical User Interface that simulates an ATM by building on the program you wrote for the midterm exam. Specifically, you will be reading customer information into an array 

Java Beginners

A simple question - Java Beginners
A simple question   Design a program to calculate either the square of a number or the square root of a number and display the results. output should be like:- Enter a float value: 6.2 Do you want the (s)quare or square (r 

Java Tips and Examples

Learn Java - Learn Java Quickly
Learn Java - Learn Java Quickly       Java is an object oriented programming language... and universities. The most important feature of Java is that it can run 

Java Beginners

Simple Java Desktop Upload application
Simple Java Desktop Upload application  I try do simple example for upload applicationtake file from c:\ put to d:\ :) PLEASE HELP 

Java Beginners

Simple Java Question - Java Beginners
Simple Java Question  [color=#0040BF] Dear All, I have a huge text file with name animal.txt, I have the following sample data: >id1 lion >id2 horse cat >id3 mouse tiger I need to save the contents 

Java Beginners

Java simple question - Java Beginners
Java simple question  I have to design a program for a trucking company that has 7 trucks in its fleet. Each truck is identified by a number, 1-7. Each also has a maximum weight. Assign the max weight limit to each truck 

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-Tutorials

Simple Java Programs
Simple Java Programs In this section we will discuss about the Java programs This section will describe you the various Java programs that will help you... learner can learn how to write first program in Java.  Java Constructor 

Java Interview Questions

Simple banking system using Java
Simple banking system using Java  I am trying to make a simple banking system that has only 3 interfaces which does not connect to the database... inheritance in java please help.Thank you 

Java Beginners

Simple IO Application - Java Beginners
Simple IO Application  Hi, please help me Write a simple Java application that prompts the user for their first name and then their last name. The application should then respond with 'Hello first & last name, what 

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 

Java-Tutorials

How to Learn Java
, how to learn Java? Learning Java is not that difficult just the right start is needed. The best way to learn Java today without spending money in through... or twice. If you are opting to learn Java online the only thing required 

General

Simple Date example
Simple Date example       In this section we have presented a simple Date example.... Parameterized constructor :- Date(int year,int month,int day) creates 

Java Beginners

How to write a simple java applet
How to write a simple java applet   Hi, how can i write a simple java applet, displaying text in specific colors and font style. For example, the output will be something like : Name in red color Age in blue color Nationality 

Programming Tutorials

Java: Example - Simple Calculator
Java: Example - Simple Calculator Here is the source for the simple... (Calc.java) - A simple main program. User interface (CalcGUI.java... place. Altho this simple example doesn't show the full power of separating 

Java-Tutorials

Learn Java for beginners
Beginners can learn Java online though the complete Java courses provided at Roseindia for free. This Java course covers the whole of Java programming... a programmer from basic to advance level of Java. New programmers prefer to learn Java 

PHP Tutorial

PHP Registering simple statistics
PHP Registering simple statistics Have you ever wanted to know who visited... ! In this tutorial I will teach you how to make a simple PHP Script that writes... that they visited ! This program follows a simple algorithm as follows: 1. Grab 

General

Writing Simple Java Script Program
Writing Simple Java Script Program       In this article you learn the basics... JavaScript Program In the last lesson you learned how to create simple java script 

Java-Tutorials

Best way to learn Java
Best way to learn Java is through online learning because you can learn it from the comfort of your home. Online learning of Java is also free, the only... that provide you Java guides or courses online, even providing certificates 

Java Beginners

Java simple reference source - Java Beginners
Java simple reference source  Hi, please could you recommend me a Java simple reference source (on line or e-book) where I could quickly find..., this is not exactly what I am looking for. Let me explain. I'm a Java beginner writing 

Java Beginners

simple program question
simple program question  how do i get a java program to take an input from the user and have it terminate by a period and not by pressing enter 

Java Beginners

Simple Java class program - Java Beginners
Simple Java class program  Hello, Please help me, Write a simple class that iterates through all the arguments passed in on the command line.... http://www.roseindia.net/java/example/java/util 

Java Beginners

Simple Java class program - Java Beginners
Simple Java class program  Hi sir, Please help me Write a simple class that iterates through all the arguments passed in on the command line...(); } } -------------------------------------------- Read for more information. http://www.roseindia.net/java 

Software Development

Which language should you learn Java or .NET?
If you are confused about which language should you learn Java or .NET, well, here is a simple description of both the languages and also the types of jobs which you can get after learning them. First let’s explain Java: Java 

Java Beginners

simple team leader
simple team leader  Could you please help me to write a program for a simple team leader?   Please clarify your problem. Which type of program you want to create in java? Please specify 

JSP Tutorials

Developing Simple Struts Tiles Application
will show you how to develop simple Struts Tiles Application. You will learn... Developing Simple Struts Tiles Application  ... language="java" %> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix 

JBoss Server

JBoss Tutorials: Learn JBoss Step by Step
JBoss Tutorials: Learn JBoss Step by Step JBoss or JavaBeans Open Source Software is a Java based Enterprise edition application server, which was formerly known as WildFly. Written in Java , JBoss supports cross platform compatibility 

Java Beginners

write simple java code - Java Beginners
write simple java code  Write a program that creates a simple calculator .The user enters two numbers in the text fields, Number 1 and Number 2. There are 4 buttons, labeled with ?Add?, ?Substract?, ?Multiply? and ?Divide 

Java-Tutorials

How to learn Java with no programming experience
Tutorial, how to learn Java provides you the opportunity to you about.... Apart from these, topic How to learn Java with no programming experience... program. Certainly, we hope the topic how to learn java will definitely create 

Java Beginners

How to learn Quartz?
How to learn Quartz?  Hi, I have to make a program in Java is scheduling account processing Job after an interval of 20 minutes. Tell me the tutorial. Thanks   Hi, Please check the tutorial Hello World Quartz 

JSP Servlet Questions

how to get session object in simple java class??
how to get session object in simple java class??  i am fallowing a simple mvc architecture. actually my problem is.... i am using 4 classes in my...) GroupDetailsDao.java (it is also a simple java class which have the jdbc logic 

Applet Questions

Simple Java applet that need usernam, password and textfield.
Simple Java applet that need usernam, password and textfield.  Hi. Anyone can help me on this matter: I need to create a small application that require user to login by username and password. After login, they should meet 

JSP Servlet Questions

Help me to write this simple java frame program
Help me to write this simple java frame program   I want to write a Java program for.... To create a frame with 4 text fields;name,street,city and pin;with suitable labels. Also add a button "OK". After enter values 

Training

Learn Online Java Training
Learn Online Java Training It would be safe to say that the advancements... their online class. Learn online Java programming training ensures that students... of the advancements in Java online Training. It has thus become exceedingly 

Java Server Faces Questions

JSF Simple question - Java Server Faces Questions
JSF Simple question  I have h:dataTable (with 10 position) i need write simple jsf file that represent only 5 position and on another page last 5 position . How can i proceed from first page to second 

Struts Examples

Struts 2, JPA and Hibernate Training
; Learn Struts 2, JPA and Hibernate in a combined 5 day online course that makes you expert in these technologies  LEARN STRUTS 2 AND RELATED TECHNOLOGIES FROM INDUSTRY EXPERTS Do you wish to learn latest Java technologies 

Java Tips and Examples

Simple Editor
Java: Example - Simple Editor This simple text editor uses a JTextArea with Actions to implement the menu items. Actions are a good way... // editor/NutPad.java -- A very simple text editor -- Fred Swartz - 2004-08 

Java Tips and Examples

Example - Simple Calculator
Java: Example - Simple Calculator Here is the source for the simple...) - A simple main program. User interface (CalcGUI.java... place. Altho this simple example doesn't show the full power of separating 

JDBC

Simple JDBC Example
.style1 { text-align: center; } .style2 { background-color: #FFFFCC; } Simple JDBC Example To connect java application to the database we do...,'John',B.Tech') ; A Simple example is given below to connect a java 

J2EE

J2EE Tutorials: Effective ways to learn J2EE
J2EE Tutorials: Effective ways to learn J2EE  J2EE  or Java 2 Platform Enterprise Edition is a Java based computing platform used for developing... Java Platform, Enterprise Edition or Java EE after the launch of version 5 

WebSevices Questions

Please help me to learn - WebSevices
Please help me to learn  Please help me to learn Java Fast 

General

Java File - Learn how to handle files in Java with Examples and Tutorials
Java File - Example and Tutorials This section is discussing about file handling in Java. You will learn how to handle file in Java. Examples given here teaches you about file handling in Java with many code snippets and ready to use 

Java-Tutorials

Determining the Day-of-Week for a Particular Date
Determining the Day-of-Week for a Particular Date       This section simply show the current day in word i.e. the Day of Week for a particular date. Here, you can learn about the way 

Java Magazine Questions

java
, and business applications. Advantages of Java: * Java is simple, easy to design , easy to write, and therefore easy to compile, debug, and learn than any other...java  what is java   Java is a programming language 

Java Tips and Examples

Simple Linked Lists
Java Notes: Simple Linked Lists This shows three programs. A simple... as simple as the singly-linked list, but makes some operations easier... it hides the details. Simple singly-linked list done "by hand 

Hibernate Tutorial Example

Learn Hibernate programming with Examples
Learn the important concepts of Hibernate programming language... to use the Hibernate in real life project. Here you will learn the concepts... knowledge and experience in Java programming specially the database driven 

Java Beginners

Java compilation error - Java Beginners
://www.roseindia.net/java/learn-java-in-a-day/download-and-install-java.shtml b) Close... at http://www.roseindia.net/java/learn-java-in-a-day/download-and-install... running simple core java program on command prompt.java is installed on my pc 

General

Very simple `Hello world' java program that prints HelloWorld
Hello World Java Simple Java Program for beginners (The HelloWorld.java) Java is powerful programming language and  it is used to develop robust applications. Writing a simple Hello World program is stepwise 

Java Tips and Examples

Simple Linked List Exercise 1
Java Notes: Simple Linked List Exercise 1 Name: ___________________________________________ Fill in the blanks to for this program that reads strings and puts them in a doubly linked list. 1 2 3 4 5 6 7 8 

General

Java Basic Tutorial for Beginners
Java Basic Tutorial for Beginners - Learn how to setup-development... will be able to start developing, compiling and testing simple Java programs..., First learn how to Install Java? Tutorials for Installing Java Following 

Advertisements Advertisements
 

 

 

DMCA.com