Advertisement
Joaquin_Hidalgo

ejercicio2

Nov 8th, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1.  
  2.  
  3. public class ejercicio2 {
  4. public static void main(String[] args) {
  5.  
  6. Queue<Character> cola_Letras = new Queue<Character>();
  7. Queue<Character> aux_Letras = new Queue<Character>();
  8.  
  9. int op = Helper.menu_TecladoOAleatorio("Ingrese opcion: ");
  10. if (op == 1) {
  11. Helper.teclado(cola_Letras);
  12.  
  13. } else if (op == 2) {
  14. Helper.aleatorio(cola_Letras);
  15. }// FIN CARGA DE DATOS
  16. int vocales=Helper.desencolar(cola_Letras, aux_Letras);
  17. System.out.println("aparecieron en total "+vocales+" vocales.");
  18. System.out.println("Cola letras: "+aux_Letras.toString());
  19. }
  20.  
  21. }//FIN ejercicio2
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement