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.
Browse: Home > CHAPTER TWO
0 Comments:
Post a Comment