simple java programs for beginners

Leap Year Program in Java

Leap Year Program in Java | In this post, we will write a Leap Year Program in Java. Based on the given input it will check whether the given year is a leap year or not. A year is called a leap year if the year is divisible by four, except for the years which

Leap Year Program in Java Read More »

Compound Interest Program in Java

Compound Interest Program in Java | Compound interest is calculated by multiplying the initial principal amount by one plus the annual interest rate raised to the number of compound periods minus one. After that, the total initial amount of the loan is then subtracted from the resulting value. So, to calculate the annual compound interest,

Compound Interest Program in Java Read More »

Simple Interest Program in Java

Simple interest program in Java | Simple interest is a quick and easy method of calculating the interest charge on a loan. Simple interest is determined by multiplying the daily interest rate by the principal by the number of days that elapse between payments. The formula for simple interest is given as, Simple Interest =

Simple Interest Program in Java Read More »

Addition Program in Java

Addition Program in Java | An Addition program in Java is the basic program, which is used to introduce to beginners. The Addition program in Java simply adds two numbers and displays them to the output screen. Addition of Two Numbers in Java without using Scanner It is a simple Java addition program that adds

Addition Program in Java Read More »