Here you can find the source of getMonthToMonth(int month)
public static String getMonthToMonth(int month)
//package com.java2s; //License from project: Apache License public class Main { public static String getMonthToMonth(int month) { String monthToMonth = ""; String[] months = { "(January-March)", "(April-June)", "(July-September)", "(October-December)" }; int index = month / 3; monthToMonth = months[index];//from www . ja v a 2 s . c o m return monthToMonth; } }