question: private static synchronized String formatAndParse ( SimpleDateFormat formatDate , SimpleDateFormat parseDate , String text ) { try { Date date = parseDate . parse ( text ) ; String result = formatDate . format ( date ) ; return result ; } catch ( ParseException e ) { logger . warning ( "Unable to parse:" + text ) ; } return "" ; }
target:  Synchronized because SimpleDatFormat aren't thread safe