public void validate() {

        // Temporary list of deletion.
        List<Loan> deletion = new ArrayList<Loan>();

        List<String> words;

        System.out.println("Validate. Format 'yes' 'no'");

        for (Loan l : this.getStockController().getStock().getOnHold()) {

            System.out.println(l.toString());

            // User input.
            words = this.getParser().getInput();

            if (!words.isEmpty()) {

                switch (words.get(0)) {

                case "yes":
                    this.getStockController().getStock().getLoans().add(l);
                    deletion.add(l);
                    System.out.println("Loan added.");
                    break;

                case "no":
                    deletion.add(l);
                    System.out.println("Loan deleted");
                    break;
                }
            }
        }

        // Delete all loans on hold of the list of deletion.
        for (Loan l : deletion) {

            this.getStockController().getStock().getOnHold().remove(l);
        }
    }