Java – How to check whether a string is palindrome
In Java, verifying if a string is a palindrome involves examining its characters from both ends and confirming equality. The following Java program illustrates how to perform this…
Press Esc to close
Archive
In Java, verifying if a string is a palindrome involves examining its characters from both ends and confirming equality. The following Java program illustrates how to perform this…
Here we are going to see the most frequently asked interview question, how to find a missing number in an array sorted/unsorted. Example Input: numbers={1,2,3,5,6} Output: 4 numbers={1,3,2,5,6} Output:…
Here we will see how to rotate an array to left direction based on the user input shifts. Sample Input: Array Size: 5 Shifts Count: 3 Array: 1…
Here we are going to write a program for Reverse of String in Java. Reverse of String Example: [java] import java.util.Scanner; public class StringReverse { public static void…
Here we are going to write a program to check a number is Perfect or not ? Number is Perfect or not ? [java] import java.util.Scanner; public class…
Here we are going to write a program to check a number is Palindrome or not ? Number is Palindrome or not ? [java] import java.util.Scanner; public class…
Here we are going to find GCD of two numbers in Java. Find GCD of two Numbers : [java] import java.util.Scanner; public class GCDExample { public static void…
Here we are going to write a program to check a number is ArmStrong or not ? Number is ArmStrong or not ? [java] import java.util.Scanner; public class…
Here we are going to write a program to check a number is prime or not ? Check a Number is Prime or Not ? [java] import java.util.Scanner;…
Here we are going to write a program to find Largest and Smallest Number in Array. Find Largest and Smallest Number : [java] public class FindSmallestAndLargestElementInArray { …
Here we are going to write a program count the number of words in a string using Java. Count the Number of words in a String : [java]…
Here we are going to write a program to find the characters count in String using Java. Find the characters count in String : [java] import java.util.Scanner; public…
Here we are going to write a program for Reverse of Number in Java. Reverse Of Number : [java] import java.util.Scanner; public class ReverseOfANumber { public static…
Here we are going to write a program to check given number is octal number or not using Java. Check Octal Number or Not ? [java] import java.util.Scanner;…
Here we are going to write a program on conversion of Binary To Hexadecimal Numbers in Java. Binary To Hexadecimal Java Example : ConvertBinaryToHexadecimal.java import java.util.Scanner; public class…
Here we are going to write a program on conversion of Octal To Decimal Numbers in Java. Octal To Decimal Java Program : [java] import java.util.Scanner; public class…
Here we are going to write a program on conversion of Decimal To Octal Numbers in Java. Decimal To Octal Conversion : ConvertDecimalToOctal.java import java.util.Scanner; public class ConvertDecimalToOctal…
Here we are going to write a program on conversion of Decimal To Hex Numbers in Java. Decimal To Hex Conversion : ConvertDecimalToHexaDecimal.java import java.util.Scanner; public class ConvertDecimalToHexaDecimal…
Here we are going to write a program on conversion of Decimal To Binary Numbers in Java. Decimal To Binary conversion in Java : ConvertDecimalToBinary.java import java.util.Scanner; public…
Here we are going to write a program on conversion of Binary to Decimal Numbers in Java. Binary To Decimal Conversion : ConvertBinaryToDecimal.java import java.util.Scanner; public class ConvertBinaryToDecimal…