Armstrong Number Program

We will learn to write an Armstrong number program in Java to check whether a given input number is Armstrong or not? So before we start writing the program directly, we should know about Armstrong…

Swap two number using third Variable

We will learn swapping two numbers using a third variable in the Java programming language. This is also a very important program that is often asked in job interviews. Before we start writing the program…

Swap two number without using third Variable

We will see a Java program to swap two numbers without using a temporary variable. This is also an important program that is often asked in the interview. In the swap operation, we basically change…

Sum the digits of a number using recursion

We will learn how to write a program in Java to sum the digits of a number using recursion. Basically, the idea is to add up all the digits of an arbitrary number. Therefore, we…

Fibonacci series program using iteration

In Java, we will learn how to output the Fibonacci series in a Java program using recursion. Its logic is different from that of the Fibonacci series program in C, which uses iteration. Here we…

Prime number program

In Java, we will learn how to write a program to check whether a given integer is a prime number or not, in the Java programming language. How will our Java program work? Our Java…

Reverse a number

In Java, we will learn how to write a program to reverse the digits of a given number in the Java programming language. So let us know what we want to accomplish in this program…