Martes, Pebrero 7, 2012

basic 8: switch statement

package basic;




public class Basic {
  
    public static void main(String[] args) {
       
  int god ;
  god = 3;
  
  switch (god){
      
      case 1 :
          System.out.println("there are 1");
          case 2 :
          System.out.println("there are 2");
              case 3 :
          System.out.println("there are 3");
      
  }
  
  
       
    }
}

Walang komento:

Mag-post ng isang Komento