Browsing tag

Java language

Display even and odd numbers without if statement in Java

Display even and odd numbers without if statement in Java In this tutorial, we will discuss the concept of Display even and odd numbers without if statement in Java language. In this post, we are going to learn how to display even and odd numbers without if statement in Java language.   First, we must…

Java program to separate even and odd numbers from an array

Java program to separate even and odd numbers from an array In this tutorial, we will discuss the concept of the Java program to separate even and odd numbers from an array In this post, we are going to learn how to separate the even and odd numbers from the given array. First, we must…

Java code to check a number is even or odd using Method

Java code to check a number is even or odd using Method In this program, we will discuss the Java code to check a number is even or odd using Method In this program, we are going to learn about how to find  odd or even number from given number using the method in the…

Java code to check whether a number is even or odd

Java code to check whether a number is even or odd In this tutorial, we will discuss a simple concept of Java code to check whether a number is even or odd In this post, we are going to learn about how to find  odd or even number from given number using if else statements in…

Java code to Addition Subtraction,Multiplication and division

Java code to Addition Subtraction, Multiplication and division In this tutorial, we will discuss Java code to Addition Subtraction, Multiplication and division In this post, we will learn about how to perform addition, subtraction multiplication, division of any two numbers using if statements  in Java programming Java program will request the user to enter two…

Switch case statement in Java language

Switch case statement in Java language In this tutorial, we are going to discuss the Switch case statement in Java language Switch statements in Java select one option from multiple options of cases based on a switch expression. The switch statement is similar to if else if … else ladder. but it is not as same…

Hollow Pyramid Pattern in Java using nested while

Hollow Pyramid Pattern in Java using nested while In this tutorial, we will discuss Hollow Pyramid Pattern in Java using nested while loop In this program, we are going to learn about how to display  Pyramid Pattern in Java using nested while loop in Java programming language Here, we display an Hollow Pyramid Pattern program…