Java Program to Calculate Simple Interest, Amount and Compound Interest using a Switch

The program shows how to Calculate Simple Interest, Amount, and Compound Interest using a Switch in java. The program uses a scanner class to take the inputs from the user. The switch case is mostly used when it is necessary to give options to the users. The following program gives users 3 different options to … Read more

Java Program to Check for the Negative Number

The program shows how to Check for the Negative Number in java. This program is also a good demonstration to know the working process of the if-else statement. If you do not understand the program, perhaps you may want to learn about the if-else statement first. if-else statement in java Java Program to Check for … Read more

Java Program to Find the Greatest of Three numbers using if-elseif statement

The following program takes three integers from the user and finds the largest of those three numbers. The program uses if..else if statement to check the greatest of three and print them accordingly. Before we start, click on the links below to have a proper working idea of if..else if statement that this program uses. … Read more