- This event has passed.
5 PM – Intro To Competitive Programing – Gamas
April 26, 2024 @ 5:00 pm - 6:00 pm
Today We Did
- We went over Java Comparator how to do Ascending and Descending sorting using one Comparator.
- We are going to learn about LinkedList.
Homework
- Enhance GamePriceComparator.java so it can do 4 type of sortings
- Price ASC order.
- Price DESC order.
- On Sale AND Price ASC order and then Not On Sale AND Price ASC order.
- On Sale AND Price DESC order and then Not On Sale AND Price DESC order.
- Finish AYCLinkedList.iterate() method.
/** * AYCLinkedList ll = new AYCLinkedList(); * ll.add("Gamas"); * ll.add("Yitong"); * ll.add("Elijah"); * * ll.iterate(); */ /** * OUTPUT * Gamas * Yitong * Elijah */