1. Write a new Java program that will create a List of String and add all of these colors: red, green, blue, purple, yellow, orange.
  2. Use for loop to go through each color inside the above list and print all colors to the shell.
    1. If the color is “blue”, print “blue is my favorite color”. If the color is “yellow”, print “I don’t like yellow color.
    2. For everything else, just print the color name.
    3. The result should be like below
    4. red
      green
      Blue is my favorite color
      purple
      I don't like yellow
      orange
  3. We are going to create a simple Game inventory system.
    1. Create a new Java file, GameInventory.java
    2. Create public static void main(String[] args)
    3. Inside the function create a List of String variable: gamesInventory
    4. Get input from the shell: “How many games do you have: “
    5. Convert the input from String into an int.
    6. Create a for loop based on the input from the user. For example, if the user answers that he has 5 games, then you should create a for loop that will loop through 5 times.
    7. Inside the for loop, ask the user (get input from shell) for the name of the game: “What is the name of your game: “
    8. Every time user enters a game name, add it to the list that you created earlier (gamesInventory).
    9. After the for loop ends. Create another for loop, which will just print all of the name of the game inside the list. But if the name of the game is “Mario”, then print “Mario is my favorite game”.
    10. If you do it properly, it will run like below
    11. How many games do you have: 3
      
      What is the name of your game: Minecraft
      What is the name of your game: Bloon Element TD 6
      What is the name of your game: Mario
      
      Minecraft
      Bloon Element TD 6
      Mario is my favorite game