TODO2 - Use a multi-way if/else statement to spawn multiple balls when keys "1","2", or "3" are pressed.
"public void multiBallCheck()"
   
  1. Complete the lab section first for practice with Space Smasher before moving on to the assignment.
  2. Remember to experiment with your game by enabling and disabling the solution to observe the desired behaviour (see the Stepwise Approach below).
  3. Find the TODO2.java starter file; run the empty solution file and explore the behaviour that you will replicate with your code.
  4. Next, read all of the comments at the top of the file in the file header.
  5. Determine the single function you need to declare inside the empty class. It's described in the comments and also at the top of this webpage.
  6. Declare the function "public void multiBallCheck(){}" and leave it empty and rerun the game - do you notice any missing behaviour?
  7. Inside your method, you must build one multi-way if/else statement that asks: "if the "1" key is being pressed, then make one new ball and add it to the ballSet and spawn it near the paddle."
  8. Inside your if statement, you'll need to call one or more API functions to make new balls, add them to the set and spawn them, which are described in the comments and also listed here for reference:

  9. Method Signature Description
    boolean isKeyboardButtonDown(KeysEnum targetKey) returns true if the key specified by "targetKey" is being pressed on the keyboard
    Ball createNewBall() returns a newly created ball that isn't attached to any ball set and also hasn't been spawned yet.
    void addToBallSetAndSpawn(Ball b) call this function add the Ball "b" to the game's ballSet and to spawn it near the paddle.

    Type Values
    KeysEnum {LEFT, RIGHT, UP, DOWN, SPACE, ENTER, ESCAPE, SHIFT, ..., ONE, TWO, THREE, ..., A,B,C,...,P,Q,R,...,Z}