How do I convert String date to a Calendar?

This example shows you how to convert String date to a Calendar.
package net.javaiq.examples.date;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

import java.util.Calendar;
import java.util.Date;

/**
 * This class demonstrates on how to convert String date to a Calendar. 
 * @author JavaIQ.net
 * Creation Date Dec 10, 2010
 */
public class StringDateToCalendarConverter {

    public static Calendar convertStringDateToCalender(String strDate) {
        Calendar cal = null;

        if (strDate != null) {
            try {
                DateFormat formatter = new SimpleDateFormat("MM-dd-yyyy");
                Date date = formatter.parse(strDate);
                cal = Calendar.getInstance();
                cal.setTime(date);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

        return cal;
    }

    /**
     * Method to test other methods in the class with sample inputs
     * @param args
     */
    public static void main(String[] args) {
        String date = "12-10-2010";
        Calendar calender = convertStringDateToCalender(date);
        System.out.println("Converted Calendar : " + calender);
    }
}