SHARING KNOWLEDGE EACH OTHERS!

Thursday, December 25, 2008

CHAPTER TWO


public class sum{
//-----------------------------------------------------------------
// SIMPLE CALCULATION & STATEMENT
//-----------------------------------------------------------------
public static void main (String[] args){
// see the different of using(+ for giving tatement)
System.out.println ("90 and 30 JOINED: " + 90 + 30);
//sum of the ()
System.out.println ("300 and 150 SUMED: " + (300 + 150));
}
}

THIS IS A SIMPLE EXAMPLE HOW TO JOIN TWO NUMBER IS THE FIRST PRINT OUT, THE SECOND OUTPUT IS HOW SUMING THE TWO NUMBERS........
COPY THIS CORD AND PAST ON YOUR TEXT PAD AND SAVE IT AS SUM.JAVA, AND THE SAVE AS TYPE IS ALL FILE.

Stumble
Delicious
Technorati
Twitter
Facebook

0 Comments:

Post a Comment

Enter your email address:

 

SOFTWARES AND PLATFORMS Copyright © 2010 LKart Theme is Designed by Lasantha