If you don't have a debugger or don't know how to use one, the easiest way to spot what's wrong in code like that is to step through it by hand, with pencil and paper and track the values of...
Type: Posts; User: dlorde
If you don't have a debugger or don't know how to use one, the easiest way to spot what's wrong in code like that is to step through it by hand, with pencil and paper and track the values of...
Compare the contents of objects (e.g. String) with the equals() method, not '=='. In this case you can use aString.isEmpty().
Your inner loop counter that is checking the current input string...