Here you can find the source of isValidMonth(int month)
public static boolean isValidMonth(int month)
//package com.java2s; /*// w w w . ja v a 2s. c o m * This code is licensed under "The MIT License" * Copyright (c) 2015 by Alberto Gonzalez * * Please see the included 'LICENSE.txt' file for the full text of the license. */ public class Main { public static boolean isValidMonth(int month) { return month > 0 && month < 13; } }