Examples of switchCasesLetter()


Examples of pdp.scrabble.game.Board.switchCasesLetter()

  catch (NullPointerException ex) {
      fail("NullPointerException was not expected");
  }

  try {
      board.switchCasesLetter(-1, -1, 0, 0);
      System.out.println("Can switch -1, -1 and 0, 0, but not recommended (used as safe area)");
  }
  catch (ArrayIndexOutOfBoundsException e) {
      fail("ArrayIndexOutOfBoundsException was not expected");
  }
View Full Code Here

Examples of pdp.scrabble.game.Board.switchCasesLetter()

  catch (ArrayIndexOutOfBoundsException e) {
      fail("ArrayIndexOutOfBoundsException was not expected");
  }

  try {
      board.switchCasesLetter(-2, -2, 0, 0);
      fail("ArrayIndexOutOfBoundsException was expected");
  }
  catch (ArrayIndexOutOfBoundsException e) {
      System.out.println("Can't switch -2, -2 and 0, 0");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.