Java Program to check if the string is empty or not.

Output: