public void getLoanDetails() {
        Character loanType;
        String loanNum;
        String lastName;
        double loanAmt;
        double primeIntRate;
        int term;
                
        for (int x = 0; x < loanDetails.length; x++) {
            System.out.println("Enter loan details for customer " + (x + 1) + "...");

            loanType = getLoanType();
            loanNum = getLoanNum();
            lastName = getLastName();
            loanAmt = getLoanAmt();
            primeIntRate = getPrimeIntRate();
            term = getTerm();
            
            System.out.println();

            // stores details through the array object
            if (loanType.equals('P')) {
                loanDetails[x] = new PersonalLoan(loanNum, lastName,
                        loanAmt, term, primeIntRate);
            } else if (loanType.equals('B')) {
                loanDetails[x] = new BusinessLoan(loanNum, lastName,
                        loanAmt, term, primeIntRate);
            }
        }
    }