Here’s my code right above.
I didn’t have the result I expected when i call my “LoanCalculate” method. Its parameters (int carLoan, int loanLength, int downPayment) should change when i call it in the main method. For exemple i created an object “Patrick”.
Then I write:
Patrick.LoanCalculate(20000, 2, 7000);
Logically it should do this carLoan = 20000; loanLength = 2; downPayment = 7000. But they’re all equal 0. Any help?
Thank you for reading !