Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static String getActualSemesterTag() { final int month = GregorianCalendar.getInstance().get(Calendar.MONTH); if (month > Calendar.FEBRUARY && month < Calendar.SEPTEMBER) return "S"; return "W"; } }