Tag

#java loop program

16 posts

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 Progra

March 20, 2021Read more →

Java Program to List Even Numbers within a Range

The program shows how to List Even Numbers within a Range in java. The program uses a scanner class to take the input of the last number(n) from the user. Therefore it displays all the even numbers between 1 to n using for loop and if statement. If you do not know the working process … Read mo

March 20, 2021Read more →