Monday, January 21, 2013

Sunday, January 20, 2013

using Switch in java progream

Using case by case  statement
basically this code  will follow case if no case is in true it will print default . 

Friday, January 18, 2013

if else statement


if else statement

use of if else statement :

IF else statement

if else statement in java program
using different library function

 

simple calculator using dialog box

this like the previous simple calculation software but this time using different library function

simple calculation progream using java

this program is created by using  library import java.util.Scanner
by this you can calculate
sum=num1+num2
deduction =num1-num2
multiplication=num1*num2
division=num1/num2

use of dialog box

this program is created using  import. javax.swing.JOptionPane  laniary function .

Wednesday, January 16, 2013

Dialog Box in java

The use of dialog box in java programing
if you want to use dialog box  you need
Import javax.swing.JOptionPane ;             < ----------------- library function
library function is basically the function which  already  have in jdk (java development kit)
let show you a easy example

Monday, January 14, 2013

hallo world 2

In java programing if you want to out some text than you should write

System.out.println("welcome to java programing")

what ever you write on the " " will shown as a out put

For making a row down use \n

such as if you want to see a output like
WELCOME TO
JAVA
PROGRAMING                                                                

input
System.out.println("WELCOME TO\nJAVA\nPROGRAMING)

Saturday, January 12, 2013

hello world java source code

Java is a very easy  and very powerful programing language .java is a platform independence  programing language it means that you run java programing in any OS such as Unix, Linux, windows, you just need to install a JDK in ur pc or laptop.

This is a hello world application. which I wrote on eclipse. we can Download