Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.mycompany.programa_gestiongrupos;
- import java.util.Scanner;
- public class Grupos_main
- {
- public static void main(String[] args)
- {
- Scanner read = new Scanner(System.in);
- Grupos Grupo1 = new Grupos();
- Grupos Grupo2 = new Grupos();
- Grupos Grupo3 = new Grupos();
- /*int op = 0, op1 = 0;
- do
- {
- System.out.println("_______________________________________");
- System.out.println("Seleccione el grupo que desea: ");
- System.out.println(" 1) Grupo 1");
- System.out.println(" 2) Grupo 2");
- System.out.println(" 3) Grupo 3");
- op = read.nextInt();
- do
- {
- System.out.println("_______________________________________");
- System.out.println("Seleccione la opción que desea realizar: ");
- System.out.println(" 0) Regresar");
- System.out.println(" 1) Gestionar Grupo");
- System.out.println(" 2) Información de Grupo");
- op1 = read.nextInt();
- switch(op)
- {
- case 1:
- {
- if(op1 == 1)
- {
- Grupo1.ShowGestionMenu();
- }
- else if(op1 == 2)
- {
- Grupo1.ShowMenuInfo();
- }
- break;
- }
- case 2:
- {
- if(op1 == 1)
- {
- Grupo2.ShowGestionMenu();
- }
- else if(op1 == 2)
- {
- Grupo2.ShowMenuInfo();
- }
- break;
- }
- case 3:
- {
- if(op1 == 1)
- {
- Grupo3.ShowGestionMenu();
- }
- else if(op1 == 2)
- {
- Grupo3.ShowMenuInfo();
- }
- break;
- }
- default:
- {
- System.exit(0);
- }
- }
- }while(op1 > 0);
- }while(op > 0);*/
- System.out.println(" Nel perro, hechale ganas");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment