How to order month name starting from current month

Viewed 3157

Say this is the array used to store the months,

String months[] = {"January", "February", "March", "April",
            "May", "June", "July", "August", "September",
            "October", "November", "December"};

I have used this method to get the current month

int monthName=calendar.get(Calendar.MONTH);

What is the best way to reorder the array into a new array or arraylist starting from the current month.

Ex: The current month is August, so the desired array or Arraylist would be

months[] = {"August", "September", "October", "November",
            "December", "January", "February", "March", "April",
            "May", "June", "July"};
10 Answers
Related