Java Program – to find the greatest of three digits.

Output: