Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
819 B
33
Indexable
Never
import com.sun.security.jgss.GSSUtil;

import java.util.Locale;
import java.util.Scanner;

public class demo {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //ден от седмицата
        //Monday, Tuesday, Friday -> 12
        //Wednesday, Thursday -> 14
        //Saturday, Sunday -> 16

        String dayOfWeek = scanner.nextLine();
        if(dayOfWeek.equals("Monday") || dayOfWeek.equals("Tuesday") || dayOfWeek.equals("Friday")) {
            System.out.println(12);
        } else if (dayOfWeek.equals("Saturday") || dayOfWeek.equals("Sunday")) {
            System.out.println(16);
        } else if(dayOfWeek.equals("Wednesday") || dayOfWeek.equals("Thursday")) {
            System.out.println(14);
        }

    }
}