private void captureDateDescriptionAmount() {
   List<String> list = this.selectedBlock;
   for (String s : list) {
     String[] temp = s.split("\\s+");
     date.add(temp[0]);
     amount.add(FileUtils.convertStringToDouble(FileUtils.getDollarSignRemovedValue(temp[1])));
     String desc = "";
     for (int a = 2; a < temp.length; a++) {
       desc += temp[a] + " ";
     }
     description.add(desc);
     String res = FileUtils.getResultFromPattern("\\d{7,}", desc);
     if (!res.startsWith("NoMatch")) {
       checkNo.add(FileUtils.getFourDigitAccountNumber(res));
     } else {
       checkNo.add("N/A");
     }
   }
   this.checkNoDuplicateRemoved = FileUtils.removeDuplicateValues(checkNo);
 }
  private void captureOnlineTransferToRecords() {
    List<String> firstLine = new ArrayList<>();
    List<String> secondLine = new ArrayList<>();
    List<Integer> indexFinder = new ArrayList<>();
    List<String> mergedLine = new ArrayList<>();

    for (int a = 0; a < this.selectedBlock.size(); a++) {
      String result =
          FileUtils.getResultFromPattern(
              "ONLINE\\s+BANKING\\s+TRANSFER\\s+TO", this.selectedBlock.get(a));

      if (!result.startsWith("NoMatch")) {
        indexFinder.add(a + 1);
        firstLine.add(this.selectedBlock.get(a));
        String[] temp = this.selectedBlock.get(a).split("\\s+");
        date.add(temp[0]);
        String value =
            FileUtils.getDollarSignRemovedValue(
                FileUtils.getLastElementFromArray(this.selectedBlock.get(a)));
        double d = FileUtils.convertStringToDouble(value);
        amount.add(d);
        String desc = "";
        for (int x = 1; x < temp.length - 1; x++) {
          desc += temp[x] + " ";
        }
        description.add(desc);
      }
    }
    for (int a = 0; a < indexFinder.size(); a++) {
      String val = selectedBlock.get(indexFinder.get(a));

      String result = this.description.get(a) + " " + val;
      String ch = FileUtils.getResultFromPattern("TO\\s+XX+\\d+", result);
      if (!ch.startsWith("NoMatch")) {
        ch = FileUtils.getFourDigitAccountNumber(ch);
        checkNo.add(ch);
      } else {
        checkNo.add("N/A");
      }
    }
  }
 private String captureAccountNumber() {
   String result = FileUtils.getTargetByMatch(pages[0], "Number\\s+\\d+");
   return FileUtils.getFourDigitAccountNumber(result);
 }
 private String captureAccountNumber() {
   String result = FileUtils.getResultFromPattern("Account:\\s+\\d+", pages[0]);
   return FileUtils.getFourDigitAccountNumber(result);
 }