Here is a sample of the most popular female first names in the United Statesaccording to the 1990 census.String PopularName="MARY,PATRICIA,LINDA,BARBARA,ELIZABETH,JENNIFER,MARIA,SUSAN,MARGARET’DOROTHY,LISA,NANCY,KAREN,BETTY,HELEN,SANDRA,DONNA,CAROL,RUTH,SHARON,MICHELLE,LAURA,SARAH,KIMBERLY,DEBORAH,JESSICA,SHIRLEY,CYNTHIA,ANGELA,MELISSA,BRENDA,AMY,ANNA,REBECCA,VIRGINIA,KATHLEEN,PAMELA,MARTHA,DEBRA,AMANDA,STEPHANIE,CAROLYN,CHRISTINE,MARIE,JANET,CATHERINE,FRANCES,ANN,JOYCE,DIANE,ALICE,JULIE,HEATHER,TERESA,DORIS,GLORIA,EVELYN,JEAN,CHERYL,MILDRED,KATHERINE,JOAN,ASHLEY,JUDITH,ROSE";I want you to do the following:1. Convert this comma delimited list into ArrayList2. Sort an ArrayList using merge sort algorithm along with a recursion3. Find initial of each name and then find the occurrences of each the alphabet andstore the result in appropriate Java collections , set, map, or something else andjustify why you chose this collection4. I want you to print the result of the initial of each names along with it occurrencesand it should show something like this:Letter | OccurrenceM|7B|35. When you have the collection you created in step 3 ready, can change the capitalletter into small letter and we you print the result it should be:Letter | Occurrencem|7b|36. Can you accomplish step 1 & 2 by just using one of the Java collections assumingthat you are looping and fetching every name putting it in this collection and it isgoing to be sorted automatically? Write how you are going to do it.
The post the most popular female first names in the United States
Assignment status: Solved by our experts