I have been working on this program for a few days and I thought I had a good way to input user . When I tried to do this, java appeared to leave the loop only. While loop is being omitted:
while (textIN.getText () == "1") {last string text = textIN.getText (); Key = text.chart (0); } While (length & lt; lengthtemp) {word = Word + WordD [length]; Length ++; } While (life> gt;) {JOptionPane.showMessageDialog (empty, "EnterLoop"); While (textIN.getText () == "1") {last string text = textIN.getText (); Key = text.chart (0); JOptionPane.showMessageDialog (zero, "work"); } YojanaPen Shomos Delog (blank, "key pressed"); Length = 0; String textmap = text.stosting (); While (length & lt; lengthtemp) {if (key == worddev [length]) {text.setchharAt (length, wordD [length]); Joppenpen Shomos Digital (empty, "right letter"); Label.setText (Text.toString ()); If (text. Toothing (= = word) {life = -1; }} Length ++; } If (TextTamp == text.stosting ()) {Life--; }} If (stays == -1) {joppenpan. Show Message Dialeg (tap, "You Win"); }
Thanks for the help.
No comments:
Post a Comment