I want to store month name in a list i.e from September-August, I found a code here for storing month name in list but not getting how to store it from september-August. I tried Move last element to front of a given Linked List algorithm found on GeeksForGeeks[Algorithm link](https://www.geeksforgeeks.org/move-last-element-to-front-of-a-given-linked-list/) but that not working as i want.

Code i'm using:

```
    private void monthList () {
        List<String> listOfMonth = new LinkedList<>();
        String[] months = new DateFormatSymbols().getShortMonths();
        for (int i = 0; i < months.length; i++) {
            String month = months[i];
            //System.out.println("month = " + month);
            listOfMonth .add(months[i]);
            LinkedList list  = new LinkedList();

        }
        System.out.println(listOfMonth);
    }

```

Regards