American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Intro To Competitive Programing – Gamas

April 26 @ 5:00 pm - 6:00 pm

Today We Did
  1. We went over Java Comparator how to do Ascending and Descending sorting using one Comparator.
  2. We are going to learn about LinkedList.
Homework
  1. Enhance GamePriceComparator.java so it can do 4 type of sortings
    1. Price ASC order.
    2. Price DESC order.
    3. On Sale AND Price ASC order and then Not On Sale AND Price ASC order.
    4. On Sale AND Price DESC order and then Not On Sale AND Price DESC order.
  2. Finish AYCLinkedList.iterate() method.
    /**
     * AYCLinkedList ll = new AYCLinkedList();
     * ll.add("Gamas");
     * ll.add("Yitong");
     * ll.add("Elijah");
     * 
     * ll.iterate();
     */
    
    /**
     * OUTPUT
     * Gamas
     * Yitong
     * Elijah
     */

Details

Date:
April 26
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights