sample java utils