Here you can find the source of getFirstMonthOfQuarter(String quarter)
public static String getFirstMonthOfQuarter(String quarter)
//package com.java2s; //License from project: Open Source License public class Main { public static String getFirstMonthOfQuarter(String quarter) { int qu = Integer.parseInt(quarter); String month = ""; if (qu == 1) { month = "01"; } else if (qu == 2) { month = "04"; } else if (qu == 3) { month = "07"; } else if (qu == 4) { month = "10"; }/*from w ww . java 2 s .c om*/ return month; } }