Graderpractice for programmers

231322 Java U8 - Lists

Awaiting submission
  • Read all the words
  • Print the list size
  • Print all the words
Awaiting submission
  • Read course codes
    • If already in the list
      ...print "You cannot enroll in XXXXX twice"
    • Else add it to the list
  • Print all enrolled courses
Awaiting submission
  • Make a List: blue, pink, green, purple, orange
  • Read colors from the user
  • Remove them from the list
  • Print:
    • How many removed
    • How many remain
    • All remaining colors
Awaiting submission
  • Read colors from the user
  • Sort (ignoring case)
  • Print
Hint: colors.sort(...)
Awaiting submission
  • Read colors from the user
  • Print the last 3
Awaiting submission
  • Read all Students
  • Add to list
  • Print all in the list
Awaiting submission
  • Repeat 8.6, but:
    • Sort by name
    • Sort by GPA high-to-low THEN name low-to-high