Type: Posts; User: John Joe
If you want to compare String, .equals() is the choice. If you are comparing int, use == instead.