Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Write a description of class StringsSelection here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- import java.util.Scanner;
- public class StringsSelection
- {
- public static void main(String[] args){
- {System.out.println("COMP 1409 - Exercise 2-b");}
- Scanner reader = new Scanner(System.in);
- String input = reader.nextLine();
- if (input.equalsIgnoreCase("Sunday"))
- {
- System.out.println("Sunday is the last day of the weekend, but the first day of the week.");
- }
- else if(input.equalsIgnoreCase("Monday"))
- {
- System.out.println("It's just another workday. Will the horror ever end?");
- }
- else if(input.equalsIgnoreCase("Tuesday"))
- {
- System.out.println("It's just another workday. Will the horror ever end?");
- }
- else if(input.equalsIgnoreCase("Wednesday"))
- {
- System.out.println("I survived to the middle of the week.");
- }
- else if(input.equalsIgnoreCase("Thursday"))
- {
- System.out.println("It's just another workday. Will the horror ever end?");
- }
- else if(input.equalsIgnoreCase("Friday"))
- {
- System.out.println("It's still a workday, but I've already checked out for the weekend.");
- }
- else if(input.equalsIgnoreCase("Saturday"))
- {
- System.out.println("WEEEE HEEEE! The weekend is here");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement