Java · Strings, Math and input

Comparing strings

Checking a typed password or sorting names means comparing text, and the obvious operator for it gives the wrong answer.