Expeditors interview question

How to compare strings in Java