This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

viernes, 13 de mayo de 2016

Sentencia Switch

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkgswitch;

/**
 *
 * @author computers
 */
public class Switch {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       int mes = 12 ;
       String mesString;
       switch  (mes) {
           case 1:  mesString = "Enero";
               break;
           case 2:  mesString = "Febrero";
               break;  
           case 3:  mesString = "Marzo";
               break;
           case 4:  mesString = "Abril";
               break;
           case 5:  mesString = "Mayo";
               break;  
           case 6:  mesString = "Junio";
               break;  
           case 7:  mesString = "Julio";
               break;
           case 8:  mesString = "Agosto";
               break;  
           case 9:  mesString = "Septiembre";
               break;  
           case 10:  mesString = "Octubre";
               break;  
           case 11:  mesString = "Noviembre";
               break;  
           case 12:  mesString = "Diciembre";
               break;  
             
           default : mesString = "Mes Invalido";
               break;  
             
        }
       System.out.println(mesString);
         
           char nota = 'c';
      switch (nota)
           
    {
          case 'A':
               System.out.println("Exelente");
               break;
          case  'B' :
          case  'C' :
               System.out.println("Buen Trabajo");
               break;
          case  'D' :
               System.out.println("Aprobaste");
          case  'F' :
               System.out.println("mejor intentalo de nuevo");
               break;
               default  :
                    System.out.println("Nota invalida");
             
      }  
       System.out.println("Tu Nota es " +nota);
               
     
    }
   
}