Pages

Friday, July 30, 2010

String.matches()

public boolean matches(String regex)

Tells whether or not this string matches the given regular expression.

Wednesday, July 14, 2010

Using String.split() instead of String Tokenizer

 

StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split method of String or the java.util.regex package instead.