- 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 popular problem is how to determine if a String is a Palindrome or not, the following will also assume we are only dealing with Palindromes of single words ie. no spaces or punctuation. The way to determine this is to compare the characters on the left and right ends of the String. If they…