java snippet to test version