java statements inside printf and loop conditions
<pre><code>        System.out.printf("\n"
        + "\nEnter a question: " +  question=stdin.nextLine()
        + "\nEnter a guess: " +  Guess=stdin.nextLine());
</code></pre>

<p>Produces error "The left-hand side of an assignment must be a variable".</p>

<p>Also, </p>

<pre><code>do
        {
            ...
        } while(System.out.printf("\nWould you? "), stdin.nextLine().equalsIgnoreCase("y"))
</code></pre>

<p>produces  "Syntax error on token ",", . expected"
I want printf to ignore the stuff that doesn't print anything. How to do so?</p>
