Useful Java classes and methods