My Little Princess

thm14

Member
Dec 30, 2007
21,734
205
0
Interpol HQ | Lyon, France
// A simple switch
class SampleSwitch {

public static void main (String args []) {
for ( int i = 0; i <6 ; i++ )

switch (i) {
case 0 : System.out.println(" i is zero.") ;
break;
case 1 : System.out.println(" i is one. ") ;
break ;
case 2 : system.out.println(" i is two.") ;
break ;
case 3 : System.out.println(" i is three." ) ;
break ;
default : System.out.println(" i is greater than 3") ;
}
}

}


:P:P:P:P
mage cmnt eka passema dennam honde ;) btw adala pudgalayath awilla neh :P
 

SIRUS3001

Well-known member
  • Jan 23, 2008
    13,222
    95
    48
    thm14 said:
    // A simple switch
    class SampleSwitch {

    public static void main (String args []) {
    for ( int i = 0; i <6 ; i++ )

    switch (i) {
    case 0 : System.out.println(" i is zero.") ;
    break;
    case 1 : System.out.println(" i is one. ") ;
    break ;
    case 2 : system.out.println(" i is two.") ;
    break ;
    case 3 : System.out.println(" i is three." ) ;
    break ;
    default : System.out.println(" i is greater than 3") ;
    }
    }

    }


    :P:P:P:P
    mage cmnt eka passema dennam honde ;) btw adala pudgalayath awilla neh :P
    apo thota java kawila :rofl::rofl:
     

    isuruimg

    Well-known member
  • Dec 30, 2006
    18,381
    149
    63
    | එකමත් එක රටක ~
    thm14 said:
    // A simple switch
    class SampleSwitch {

    public static void main (String args []) {
    for ( int i = 0; i <6 ; i++ )

    switch (i) {
    case 0 : System.out.println(" i is zero.") ;
    break;
    case 1 : System.out.println(" i is one. ") ;
    break ;
    case 2 : system.out.println(" i is two.") ;
    break ;
    case 3 : System.out.println(" i is three." ) ;
    break ;
    default : System.out.println(" i is greater than 3") ;
    }
    }

    }


    :P:P:P:P
    mage cmnt eka passema dennam honde ;) btw adala pudgalayath awilla neh :P


    :eek: :eek: :confused: :oo: