Is it a good programming practice to write a while with a true argument so that it runs infinitely?


In a hypothetical situation: Is it a good programming practice, writing a while this way? So that it continues to run endlessly?

    System.out.println("Por favor, Escolha: ");
    System.out.println("1: Adicionar Cliente");
    System.out.println("2: Depositar Dinheiro");
    System.out.println("3: Retirar Dinheiro");
    System.out.println("4: Checar Conta");
    System.out.println("5: Calcular Valor");
    System.out.println("6: Sair");
asked by anonymous 10.05.2016 / 19:49

0 answers