Created
July 29, 2014 10:34
-
-
Save Corikachu/a79182b2dcaac4b4fe6d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Calendar; | |
import java.util.GregorianCalendar; | |
public class WonkyunCalendar { | |
private GregorianCalendar calendar; | |
public WonkyunCalendar(){ | |
calendar = new GregorianCalendar(); | |
} | |
public int getYear(){ | |
return calendar.get(Calendar.YEAR); | |
} | |
public int getMonth(){ | |
return calendar.get(Calendar.MONTH); | |
} | |
public int getDate(){ | |
return calendar.get(Calendar.DATE); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment