Random java utilities that I've used in the past.