I need to Find Previous month name using Calender or any classes that in java
if its January then its must give December as previous month (with year if possible).
Calendar cal = Calendar.getInstance();
cal.add(Calendar.MONTH, -1);
//format it to MMM-yyyy // January-2012
String previousMonthYear = new SimpleDateFormat("MMM-yyyy").format(cal.getTime());