import java.util.Scanner; public class War { // ADD ADDITIONAL CONSTANTS HERE, IF DESIRED... static Pile pile1; static Pile pile2; static int numTurns; // ADD ADDITIONAL VARIABLES HERE, IF DESIRED... public static void printPiles() { // For your convenience, this prints the cards in // pile1 and pile2 along with the turn number, as specified // by numTurns System.out.println("Turn: " + numTurns + System.lineSeparator()); System.out.println("player1:"); System.out.println(pile1 + System.lineSeparator()); System.out.println("player2:"); System.out.println(pile2); System.out.println("--------------------------------------"); } public static void printWar() { // Call this method every time there is a tie in the ranks // of cards compared System.out.println(" *** WAR! ***" + System.lineSeparator()); } // ADD ADDITIONAL METHODS HERE, IF DESIRED... public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Enter Player 1's cards (from top to bottom):"); pile1 = new Pile(scanner.nextLine()); System.out.println("Enter Player 2's cards (from top to bottom):"); pile2 = new Pile(scanner.nextLine()); numTurns = 1; // ADD CODE HERE TO COMPLETE THIS METHOD... } }