Skip to content

toaha63/Java-Calendar-Program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Java Calendar Program

A Java program that prints a full year calendar for any given year, using Java's built-in Calendar and GregorianCalendar classes.

Features

  • Takes a year as input
  • Prints a properly formatted 12-month calendar
  • Correctly handles leap years
  • Proper week alignment and spacing

How to Run

  1. Compile: javac FullYearCalendar.java
  2. Run: java FullYearCalendar
  3. Enter a year when prompted

Example

Enter year: 2024
     January 2024
 Su Mo Tu We Th Fr Sa
     1  2  3  4  5  6
  7  8  9 10 11 12 13
 14 15 16 17 18 19 20
 21 22 23 24 25 26 27
 28 29 30 31
...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages