Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
[Green] Make the test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jmewes committed May 19, 2016
1 parent 638764d commit 6c8ee5d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ public static List<String> getAccountNumbers(File accountNumbersFile) throws IOE
List<String> content = Files.readAllLines(accountNumbersFile.toPath());

for (int lineIndex = 0; lineIndex < content.size(); lineIndex += NUMBER_OF_DIGIT_ROWS + 1) {

char[][] accountEntry = new char[NUMBER_OF_DIGIT_ROWS][NUMBER_OF_DIGIT_COLS];
for (int rowIndex = 0; rowIndex < NUMBER_OF_DIGIT_ROWS; rowIndex++)
accountEntry[rowIndex] = content.get(rowIndex).toCharArray();
accountEntry[0] = content.get(lineIndex).toCharArray();
accountEntry[1] = content.get(lineIndex + 1).toCharArray();
accountEntry[2] = content.get(lineIndex + 2).toCharArray();
accountNumbers.add(parseAccountNumber(accountEntry));
}

Expand Down

0 comments on commit 6c8ee5d

Please sign in to comment.