java program to find greatest number among three numbers