Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ejercicio2 {
- public static void main(String[] args) {
- Queue<Character> cola_Letras = new Queue<Character>();
- Queue<Character> aux_Letras = new Queue<Character>();
- int op = Helper.menu_TecladoOAleatorio("Ingrese opcion: ");
- if (op == 1) {
- Helper.teclado(cola_Letras);
- } else if (op == 2) {
- Helper.aleatorio(cola_Letras);
- }// FIN CARGA DE DATOS
- int vocales=Helper.desencolar(cola_Letras, aux_Letras);
- System.out.println("aparecieron en total "+vocales+" vocales.");
- System.out.println("Cola letras: "+aux_Letras.toString());
- }
- }//FIN ejercicio2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement