To perform bubble sort on Strings we need to compare adjacent Strings and if they are not in the order then we need to swap… [Read More]
Java program to Print Armstrong numbers between a given range
We have already seen java program to check Armstrong number. In this tutorial, we will write a java program to print Armstrong numbers between a… [Read More]
Java Program to print Pascal Triangle
In this tutorial, we will write a java program to print Pascal Triangle. Java Example to print Pascal’s Triangle In this program, user is asked… [Read More]
Java Program to Find square root of a Number without sqrt
Finding square root of a number is very easy, we can use the Math.sqrt() method to find out the square root of any number. However… [Read More]
Java Program to Check if given Number is Perfect Square
In this tutorial, we will write a java program to check if a given number is perfect square. Java Example to check if a number… [Read More]
Java Program to break Integer into Digits
In this tutorial, we will write a java program to break an input integer number into digits. For example if the input number is 912… [Read More]
Java Program to Sort an Array in Ascending Order
In this java tutorial, we are sorting an array in ascending order using temporary variable and nested for loop. We are using Scanner class to… [Read More]
Java Program to Sort Strings in an Alphabetical Order
In this java tutorial, we will learn how to sort Strings in an Alphabetical Order. Java Example: Arranging Strings in an Alphabetical Order In this… [Read More]
Java Program to Find GCD of Two Numbers
The GCD (Greatest Common Divisor) of two numbers is the largest positive integer number that divides both the numbers without leaving any remainder. For example…. [Read More]
Java Program to Add two Binary Numbers
In this tutorial we will write a java program to add two binary numbers. Binary number system has only two symbols 0 & 1 so… [Read More]
Java Program to Add Two Complex Numbers
Complex numbers have two parts – real part and imaginary part. In this tutorial, we will write a Java program to add two complex numbers…. [Read More]
Java Program to Check Armstrong Number
Here we will write a java program that checks whether the given number is Armstrong number or not. We will see the two variation of… [Read More]
Java Program to reverse the Array
This program reverse the array. For example if user enters the array elements as 1, 2, 3, 4, 5 then the program would reverse the… [Read More]
Java Program to reverse words in a String
This program reverses every word of a string and display the reversed string as an output. For example, if we input a string as “Reverse… [Read More]
Java Program to Display Fibonacci Series using loops
The Fibonacci sequence is a series of numbers where a number is the sum of previous two numbers. Starting with 0 and 1, the sequence… [Read More]
- « Previous Page
- 1
- …
- 3
- 4
- 5
- 6
- 7
- …
- 9
- Next Page »