Skip to content

Instantly share code, notes, and snippets.

@cleicar
Last active May 12, 2020 21:52
Show Gist options
  • Save cleicar/469cfe70760dbc57cdd91e5ebe0052cf to your computer and use it in GitHub Desktop.
Save cleicar/469cfe70760dbc57cdd91e5ebe0052cf to your computer and use it in GitHub Desktop.
Codigo Julia
public static void main(String[] args) {
Scanner leia = new Scanner(System.in);
Fila fila = new Fila(20);
Fila f1 = new Fila(3);
int opcao = 0;
while(opcao != 4) {
menu();
opcao = leia.nextInt();
switch(opcao) {
case 1:
inserir(fila, opcao);
break;
case 2:
remover(fila, opcao);
break;
case 3:
busca(fila);
break;
case 4:
imprimir(fila);
}
}
System.out.println("Obrigado e volte sempre!!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment