| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 53105 | 2005-01-07 10:39:00 | Are there any programmer!?!? | ocmara (6659) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 311744 | 2005-01-17 04:36:00 | while (hideThread.shortMomentGone == false); you never reset the shortMomentGone to true therefore you will never exit that loop So, what's the solution!!!!!!!!!! |
ocmara (6659) | ||
| 311745 | 2005-01-17 10:05:00 | "while (hideThread.shortMomentGone == false);" Unless some condition sets the ShortMomentGone to true it will end up in an endless loop |
mikebartnz (21) | ||
| 311746 | 2005-01-17 10:20:00 | I think, this is maybe where it go's } while (hideThread.shortMomentGone == false); // Now the hide thread should begin to overwrite any input with "*" hideThread.hideInput = true; // Read the password System.out.println("\nPassword:"); System.out.print(" "); password = in.readLine(); hideThread.stopThread = true; shortMomentGone=true; } if that does not kick you out of the loop try checking your logic (you did a dataflow diagram and you have desk checked this :D), you will know better than I when data procesing should stop for the readLine procedure, also do a google search on "password masking in java" at the moment from what I have seen of this the password input is not being masked, its in clear text. |
beama (111) | ||
| 1 2 | |||||