Public static Month getMonth(int month, int year) * Call this method to get a Month object to work with. * This constructor is private so callers will use the Private static HashMap months = new HashMap() ![]() * A Java “Month” class which can be used in a calendar application, Without any further ado then, here is the source code for this Java Month class: ![]() If you happen to be working on a Java calendar application, and need a class to represent the months in a year, this source code may be helpful, so I thought I'd share it here. I was just cleaning up some old bits, and ran across a Java Month class that I've used on several calendar-related projects. Summary: This blog post shares some source code for a Java Month class that you can use in your applications, such as a Java calendar applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |