FacundoCruz

TP4Principal

Oct 29th, 2020
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class TP4Principal {
  2.     public static void main(String[] args){
  3.         CompetenciaPescaPejerey ejercicio6=new CompetenciaPescaPejerey();
  4.         int respuesta;
  5.         do {
  6.             menu();
  7.             respuesta=Helper.numeroEntero("Ingrese una opcion ........ : ");
  8.            
  9.             switch(respuesta){
  10.             case 1: //ejercicio2.run();
  11.                 break;                          
  12.             case 2: ejercicio6.run();
  13.                 break;
  14.             case 3: //Fin del programa
  15.                 break;
  16.             default: System.out.println("Ingrese una opcion valida");
  17.                 break;
  18.             }
  19.         } while (respuesta!=3);
  20.        
  21.    
  22.     } //Fin main
  23.     public static void menu(){
  24.         System.out.println("----- Ejercicios del TP NĀ°4 Listas -----");
  25.         System.out.println("1) Ejercicio 2 ......");
  26.         System.out.println("2) Ejercicio 6......");
  27.         System.out.println("3) Salir del programa......");
  28.     } //Fin menu
  29.    
  30.  
  31.  
  32.    
  33. } //Fin class TP4Principal
  34.  
Add Comment
Please, Sign In to add comment