If you are using the current date in your program,
calendar.get (Calendar.MONTH) works if u have initialized calendar object.Else use the Date from the method which returns the date.In your other method to calculate the month,get the date object and first use
String tokenizer and get the two digits of the month,then in your month method use comparisions for the digits to months and return the month to your main class and print it.I think that should help you.
------------------
DS