A Java program that takes in a number and outputs if it is happy or not