- Start learning Java
- Lots of free examples
- Well commented Java source
- Limited support available
Learning Java can be a daunting task.
Being taught the theory and actually putting it into practice are two very different things.
Learn Java by Example fills that gap by providing a high quality collection of solutions to popular Java problems.
An essential study tool for anyone learning Java.
This example expands on the Monthly Payment Calculator example we posted earlier. As well as calculating the monthly payment for a loan, it then goes on to use that to calculate the balance of the loan after each payment. This is often referred to as an amortisation schedule. The displayMonthlyBalance() method handles generating the schedule…
A common problem many new Java developers is to write a program that prints out a triangle. There a lots of variations on this problem but lets start with a simple case and then have a look at some possible variations. Probably the simplest case is a left aligned triangle of stars that looks like…