Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Calendar; public class Main { public static int getServiceIdForDay(int day) { switch (day) { case Calendar.SUNDAY: { return 3; } case Calendar.SATURDAY: { return 2; } default: { // this will cover any days not specifically called out return 1; } } } }