1
A part of my code:
// faça: 
do {
    System.out.println("Você deseja sentar na Janela (J) ou Corredor (C) ?");
    opcaoSentar = leer.next();
    // se a opção foi J
    if (opcaoSentar.equals("J")) {
        System.out.println("Venda Efetivada");
        // Preenchendo o lugar com 1
        janela[numeroPoltronaSolicitado - 1] = 1;
        // se não, se o a opção for C  
    } else if (opcaoSentar.equals("C")) {
        System.out.println("Venda efetivada");
        // preenchendo o lugar com 1
        corredor[numeroPoltronaSolicitado - 1] = 1;
    } else {
        // caso n foi nenhuma, opção invalida e vai voltar a pergunta
        // por causa do {do while}
        System.out.println("Opção Invalida !");
    }
    // enquanto a opção de sentar (Janela ou Corredor) for diferente de C ou J    
} while ((!opcaoSentar.equals("J")) || (!opcaoSentar.equals("C")));
I think there’s some mistake in this part:
while ((!opcaoSentar.equals("J")) || (!opcaoSentar.equals("C")));
Because I’m never getting out of the (while) loop. I’m making right the denial of comparison ?
(!opcaoSentar.equals("J")) || (!opcaoSentar.equals("C"))
You are aware that you will only leave if you type C or J higher ne?
– user28595
Sure, but even if you type, you’re not leaving
– RickPariz
Are you watching case sensitive? C != c, etc. Leer.next() is the console’s imput? What is in the Leer object?
– Ademir Gabardo