Java tools class