Werner Vogels takes Amazon CTO position AspectJ 5 supports Java 5
Jan 16

Java 5: String.regionMatches()

Java, Tech Add comments

Kirk talks about the new regionMatches(..) methods available in the Java 5 String class.

There were questions on readability, and Kirk has a benchmark to proove the micro-performance.

I think the methods definitely harder to grok at first, and there is room for helper methods (e.g. in the first case: foo.startsWithIgnoreCase(bar)).

Case-folding startsWith()

If you

Comments are closed.