Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.List; import java.util.Locale; public class Main { private static List<SimpleDateFormat> knownPatterns = new ArrayList<>(); private static void init() { knownPatterns.add(new SimpleDateFormat("EEEE MMM dd hh:mm:ss z yyyy", Locale.getDefault())); } }