code me a priority queue

Job ID: 36217272

Budget: €8 – €30 EUR

a gui in netbeans for an application that enters a users name age and medical condition - (this has been coded already) - application must print everyone that has been entered (this has been coded already) - app must display how many people have been entered ( this has been coded already) - Allocate priority from the people entered and list them in groups Priority 10 represents the highest priority given.
- Priority 10: People aged 90 and older
- Priority 9: People aged 80 and older -
Priority 8: People aged 70 and older -
Priority 7: People aged 65‐69
- Priority 6: People aged 18‐64 with medical condition(s)
Priority 5: People aged 55‐64
- Priority 4: People aged 45‐54
- Priority 3: People aged 30‐44
- Priority 2: people aged 18‐29
- Priority 1: People aged under 18

this people need to be printed out in groups of priority (need help with this code this, priority needs to be allocated with 1 button )

identify the next group of people and remove the previous (need help with this code - removal and next group should happen in 1 button )