Java Month lineStartsWithMonthString(String line)

Here you can find the source of lineStartsWithMonthString(String line)

Description

line Starts With Month String

License

Apache License

Declaration

private static boolean lineStartsWithMonthString(String line) 

Method Source Code

//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;
    }
}

Related

  1. issueMonthNum(int issue1, int issue2)
  2. isValidMonth(int month)
  3. isValidObjectModelMonth(int aMonth)
  4. isWeekOfMonth(int num)
  5. leapMonth(int y)
  6. lookupMonthStr(int month)
  7. maxLengthOfMonth(int month)
  8. MONTH(int mh)
  9. month2int(String month)