The Sun Developer Network has a useful article on calculating String lengths and comparing Strings using a variety of different approaches: ==, equals(), compareTo() and Collators. This is a useful read if you are unfamiliar with these approaches.
Articles, notes and random thoughts on Software Development and Technology
The Sun Developer Network has a useful article on calculating String lengths and comparing Strings using a variety of different approaches: ==, equals(), compareTo() and Collators. This is a useful read if you are unfamiliar with these approaches.