Java Year Format isYearOnly(String input)

Here you can find the source of isYearOnly(String input)

Description

is Year Only

License

Open Source License

Declaration

private static boolean isYearOnly(String input) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static boolean isYearOnly(String input) {
        return input.matches("[0-9]{4}");
    }/*  w  w  w  . j a  v  a2s.c om*/
}

Related

  1. getYyyyMMddWithoutDate()
  2. isPartialYear(String s, String yearFormat)
  3. isValidDateMMddyyyy(String theString)
  4. isYear(int y)
  5. isYear(String str, boolean nullCheck)
  6. isYYYY(String strDate)
  7. lastDayOfWeek(String year, int week, String format)
  8. stringYYYYmmDDhhMMssToDate(String value)
  9. toDateString(String ddMMMyyyy)