Created
June 4, 2014 01:53
-
-
Save notblizzard/8444f290a604972b44a7 to your computer and use it in GitHub Desktop.
This file contains 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 day { | |
public static void main (String[] args) { | |
Calendar calendar = new GregorianCalendar(); | |
int day = calendar.get(Calendar.DAY_OF_WEEK); | |
switch (day) { | |
case 1: | |
System.out.println("It\'s Sunday!"); | |
break; | |
case 2: | |
System.out.println("It\'s Monday!"); | |
break; | |
case 3: | |
System.out.println("It\'s Tuesday!"); | |
break; | |
case 4: | |
System.out.println("It\'s Wednesday!"); | |
break; | |
case 5: | |
System.out.println("It\'s Thursday!"); | |
break; | |
case 6: | |
System.out.println("It\'s Friday!"); | |
break; | |
case 7: | |
System.out.println("It\'s Saturday!"); | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment