I've developed the code below for this problem "Java API has the GregorianCalendar class in the java.util package that can be used to obtain the year, month, and day of a date. The no-arg constructor constructs an instance for the current date, and the methods get(GregorianCalendar.YEAR), get(GregorianCalendar.MONTH), and get(GregorianCalendar.DAY_OF_MONTH) return the year, month, and day. Write a program to test this class to display the current year, month, and day."
But it give me Wrong result
the output is
I Hear I Forget, I See I Remember, I Do I Understand.