20 lines
458 B
Java
Raw Normal View History

2021-02-03 14:34:48 -05:00
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;
}
}