How do I loop a statement til condition is met ?Java : <pre><code>        Scanner scanner = new Scanner(System.in);
    System.out.println("1. Do you like computers?");
    String input = scanner.nextLine();

    if (input.equals("no")) {
        System.out.println("You should!");

    if (input.equals("yes")){
        System.out.println("I like computers too!");
</code></pre>

<p>If the user inputs anything else than "yes" or "no", how would i repeat the question til the user inputs "yes" or "no". I am new to java so detailed explanations will help.</p>
