Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Build the switchPlayers() Method

Assignment:

  1. Write a method called switchPlayers() inside the Game class according to the requirements and guidelines below.

Requirements and Guidelines for switchPlayers() Method

/** 
 * Switches active player. 
 */
  1. This method should receive no arguments.
  2. This method should not return anything.
  3. Inside the method, iterate through...