Here you can find the source of checkDateFormat()
private static void checkDateFormat()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; public class Main { public static final String DATE_FORMAT = "dd/MM/yyyy"; private static SimpleDateFormat dateFormat; private static void checkDateFormat() { if (dateFormat == null) { dateFormat = new SimpleDateFormat(DATE_FORMAT); }/* w w w .j ava 2s .c o m*/ } }