Here you can find the source of isYear(int y)
private static boolean isYear(int y)
//package com.java2s; //License from project: Open Source License public class Main { private static boolean isYear(int y) { return y >= 100 && y <= 5000; }/* www .ja v a 2 s.c om*/ }