Here you can find the source of monthToTerm(int month)
Parameter | Description |
---|---|
month | a parameter |
private static int monthToTerm(int month)
//package com.java2s; public class Main { /**// w ww. j ava 2s . co m * Java months are zero-based, January = 0 thru December = 11 * * @param month * @return */ private static int monthToTerm(int month) { int term = (month / 3) + 1; return term; } }