Trying to write a code to keep asking the user the same dialog until they get it correct
<p>I have a code here and I'm not sure how to keep asking a question until the user answers the correct answer</p>

<pre><code>while ((stringSize &gt;= 0) &amp;&amp; (stringSize &lt;= 4) &amp;&amp; (stringSize &gt;= 8)){
  if ((stringSize &gt;= 0) &amp;&amp; (stringSize &lt;= 4) &amp;&amp; (stringSize &gt;= 8)){
     System.out.println("no");
     input = JOptionPane.showInputDialog(null, "Enter a word");
  }
  if (secondChar == '+' &amp;&amp; ((stringSize &gt;= 4) &amp;&amp; (stringSize &lt;= 8)))
  {
     break;
  }
}
if (secondChar == '+' &amp;&amp; ((stringSize &gt;= 4) &amp;&amp; (stringSize &lt;= 10))){
}
  System.out.println("yes");
</code></pre>
