It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.
Community driven content discussing all aspects of software development from DevOps to design patterns. They’re deprecating finalize. That’s a pretty drastic move. Finalize is defined right there in ...
package dustin.examples; import java.util.Objects; /** * Simple class to be used in demonstration of JDK 7's java.util.Objects class. * * @author Dustin */ public class Person { private String ...