Most new Java developers quickly learn that they should generally compare Java Strings using String.equals(Object) rather than using ==. This is emphasized and reinforced to new developers repeatedly ...
It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.
I'm currently beating my head against the following problem, and I could use a point in the right direction.<BR><BR>For my current task, I'm required to generate an implementation for clone(), equals( ...