The interactive Creating Your First Java Program Java project from Pluralsight accompanying the Java Language Fundamentals course.
In this project, you will be creating few calculators, including a MortgageCalculator and a Best Loan Rate Finder. You will develop multiple command-line apps that can run from a single command.
- Setup
Set up your local environment for this project. We'll walk you through everything you need to know, including how to install and configure your environment to be able to complete all of the tasks.
- What we'll build
- Get the code
- Local environment setup
- Verify local environment
- Finding the Best Loan Rates
Create a command-line program to return the best loan rates based on the loan term.
- Modify doubleTheNumber()
- Create a New add() Method
- Add Implementation to add() Method
- Create a New BestLoanRates Class
- Create a new main() method
- Get the User Name Using Scanner API
- Create a New Map bestRates
- Create a New Method getRates()
- Add an Implementation to getRates()
- Get the Loan Term Using the Scanner API
- Creating a Savings Calculator
Create a command-line program to return the net monthly savings given income and expenses.
- Create a New SavingsCalculator Class
- Create Members to Store Credit and Debit Amounts
- Create a Constructor for SavingsCalculator
- Save the Parameter Values to Field Values
- Create a New Method sumOfCredits()
- Return the Sum of Credit Amounts
- Create a New Method sumOfDebits()
- Return the Sum of Debit Amounts
- Create a New Method remainingDaysInMonth()
- Calculate and Return Remaining Days In Month
- Create a New Method calculate()
- Return the Net Savings
- Create the main() Method
- Complete the Command-Line App Implementation
- Creating a Mortgage Calculator
Create a command-line program to return the monthly mortgage payment given few required inputs.
- Create a New MortgageCalculator Class
- Create Members to Store Required Inputs
- Create a Constructor to Accept Values
- Create a New Method getNumberOfPayments()
- Calculate and Return Total Number of Payments
- Create a New Method getMonthlyInterestRate()
- Calculate and Return Monthly Interest Rate
- Create a New Method calculateMonthlyPayment
- Calculate the Mortgage Payment
- Create the Overridden toString() Method
- Override the toString() Implementation
- Create the main() Method
- Complete the Command-Line Application Implementation
- Creating One Finance App
Merge all the command-line apps into one
- Create a New Finance Class
- Create Three Constant Members In Class
- Create a Command Usage Helper
- Create a New Method validateCommandArguments()
- Implement validateCommandArguments()
- Create a Command Executor
- Implement the Command Executor
- Create a New main() Method
- Implement the main() Method
- Handling Errors and Bad Inputs
Make your calculators safe against bad inputs
- Create a New Utilities Class
- Create a New Method getLongValue()
- Implement getLongValue()
- Create a New Method getIntValue()
- Create a New Method getFloatValue()
- Update main() Method of MortgageCalculator
Tutorial led by Pluralsight instructor Harit Himanshu