Here you can find the source of lineStartsWithMonthString(String line)
private static boolean lineStartsWithMonthString(String line)
//package com.java2s; //License from project: Apache License public class Main { static String[] monthString = new String[] { "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC" }; private static boolean lineStartsWithMonthString(String line) { if (line.length() <= 10) return false; String ll = line.substring(0, 3).toUpperCase(); for (String mm : monthString) { if (ll.startsWith(mm)) return true; }//from w ww. j av a 2 s.c o m return false; } }