private static void calculateXorsGrid() { if (DEBUG) System.out.println(cipherTexts.get(cipherTexts.size() - 1)); for (int i = 0; i < possibleLetters.length; i++) { String currText = cipherTexts.get(i); String currTextXorResult = CryptoHelpers.xorHex(currText, cipherTexts.get(cipherTexts.size() - 1)); String xorText = CryptoHelpers.fromHex(currTextXorResult); if (DEBUG) System.out.println(currText + "\n" + xorText); for (int j = 0; j < possibleLetters[0].length && j < xorText.length(); j++) possibleLetters[i][j] = xorText.charAt(j); } }