I try to get the value of an enum class
When ordering a whole number by console, the code would be something like this:
//metodo class
public enum TipoDeMadera {
ROBLE,CAOBA;
}
//metodo main
System.out.println("introduzca un numero para elegir madera, 1 para roble, 2 para caoba");
int numero = Scanner entrada.nextInt();
How could I show the chosen wood in console?