Created
November 8, 2020 20:50
-
-
Save eliasnogueira/a322dfddf20add053b6ff1bceb0cebbe to your computer and use it in GitHub Desktop.
Usage example of the LoanBuilder class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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