JosephGlz

Clase: Array_Main [23/03/2021]

Mar 23rd, 2021
970
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. package com.mycompany.plantillaarreglo;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Array_main
  6. {
  7.     public static void main(String[] args)
  8.     {
  9.         Scanner read = new Scanner(System.in);
  10.         Array GrupoPOO = new Array();
  11.         Array GrupoISW = new Array();
  12.         int op = 0;
  13.         do
  14.         {
  15.            
  16.             System.out.println("Seleccione el grupo: ");
  17.             System.out.println("    1) Grupo POO");
  18.             System.out.println("    2) Grupo ISW");
  19.             op = read.nextInt();
  20.            
  21.             if(op == 1)
  22.             {
  23.                 GrupoPOO.Menu_Opciones();
  24.             }
  25.             else if(op == 2)
  26.             {
  27.                 GrupoISW.Menu_Opciones();
  28.             }
  29.            
  30.         } while (op > 0);
  31.        
  32.     }
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment