20 lines
458 B
Java
20 lines
458 B
Java
import java.util.ArrayList;
|
|
|
|
public class CreditUnion{
|
|
//ArrayList of HomeBuyer objects as borrower roster
|
|
ArrayList<HomeBuyer> homeBuyers = new ArrayList<HomeBuyer>();
|
|
|
|
public ArrayList<HomeBuyer> getPreApprovedList(){
|
|
|
|
ArrayList<HomeBuyer> approvedHomeBuyerList = new ArrayList<HomeBuyer>();
|
|
|
|
for (HomeBuyer buyer:homeBuyers){
|
|
if (buyer.getCreditScore()>=700){
|
|
approvedHomeBuyerList.add(buyer);
|
|
}
|
|
}
|
|
return approvedHomeBuyerList;
|
|
}
|
|
|
|
}
|