Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Usage example of the LoanBuilder class
public class MyTest {
public static void main(String[] args) {
// create a new Loan object using the LoanBuilder
Loan loan = new LoanBuilder().
name("elias").
email("elias@eliasnogueira.com").
amount(new BigDecimal(10.000)).
installments(8).
build();
// show the loan data
System.out.println("loan = " + loan);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment