private static Operacao escolherUmaOperacao() {
return IO.getTextIO().newEnumInputReader(Operacao.class)
.withInvalidIndexErrorMessagesProvider((s, s1, i, i1) ->
Collections.singletonList("Opção inválida. Digite um número de " + i + " até " + i1))
.withValueFormatter(Operacao::getNome)
.read("Escolha uma operação: ");
}
I'd like to change this text right here:
I've tried accessing the method printPrompt which is inherited from org.beryx.textio.InputReader but it cannot be accessed.
I'd like to change this text right here:
I've tried accessing the method
printPrompt
which is inherited fromorg.beryx.textio.InputReader
but it cannot be accessed.3.4.1 version is installed