To write a java program to get the IP address, we first need to understand what an IP address is. The IP address is a Read More…
How to Swap Two Numbers in JAVA?
In this tutorial we will learn how to swap two numbers in Java swap two numbers in Java programming means swapping the values of two Read More…
Armstrong number in java
A number is an Armstrong number in java if the sum of its own digits raised to the power number of digits gives the number Read More…
How to Check Prime Number in JAVA?
Any natural number that is divisible only by itself and 1 is called a prime number in Java. In other words, prime numbers have just two factors Read More…
Reverse a number in java
In this tutorial, we will learn about how to reverse a number in java. We can write a program to reverse a number in java Read More…
Java program to convert char array to String
We can write a java program to convert the char array to string by creating a new string. It should be allocated a sequence of Read More…
Java Program to find occurrence of a character in a string
To find the occurrence of a character in a string, we can use Java program. the program stores the occurrence count and compare it with Read More…
Java program to reverse a string
In this tutorial, we will learn about how to reverse a string in Java. Since the strings are immutable objects, you need to create another string to Read More…
Finding power of a number in java
In this tutorial, we will learn how to find the finding power of a number in java. The power of a number is defined as Read More…
Check if leap year java
In this tutorial, we will learn how to check if leap year java. A leap year is a special year which has 1 day extra. Read More…