I have this code, and would like to know how to call a method from switch...case
.
public static void opcoes(){
System.out.println("Selecione o Algoritmo de Substituicao Desejado");
System.out.println("1 - FIFO");
System.out.println("2 - LRU");
System.out.println("3 - Segunda Chance");
System.out.println("4 - Otimo");
Scanner input = new Scanner(System.in);
int num;
switch(num){
case 1: //// faz a chamada de método referente a FIFO
}