Methods I made for use with various of my java projects