Category: Java
-
How to count whether any number in an array repeated twice or thrice
This is the second solution to count whether any of the number in an array repeated twice or thrice from the same array of integers using Collections class.
-
How to count whether any number in an array repeated twice or thrice
This is the first solution to count whether any of the number in an array repeated twice or thrice from the same array of integers using HashMap collection.
-
How to check the two strings or sentences are Anagram using HashMap
This is the third solution to check whether the given two strings are Anagram are not. This program uses Hash Map collection.
-
How to check two strings or sentences are Anagram using StringBuilder class
This is the second solution to check whether the given two strings are Anagram are not. This program uses deleteCharAt() method of StringBuilder Class.
-
How to check two sentences or strings are Anagram using String class
This is the first solution to check whether the given two strings are Anagram are not. This program uses toCharArray() method of String Class.
-
How to remove duplicate numbers in an Array of integers using HashSet
This is the second solution to remove the duplicate numbers from an Array of integers. This program uses the Set collection to removing the duplicate numbers.
-
How to remove duplicate numbers in an Array of integers
This is the first solution to remove the duplicate numbers from an Array of integers. This program takes the temporary array to store the numbers after removing the duplicates.
-
How to reverse each word in a sentence without using reverse method
This is the second solution to to reverse each word in the given input line of strings. This program uses the core logic to reverse each string.
-
How to reverse each word in a sentence using StringBuffer class
This is the first solution to to reverse each word in the given input line of strings. This program uses the built in reverse method of StringBuffer class.
-
How to find the duplicate words in a sentence using Collections class
Find the duplicate words in a given sentence of strings using the frequency method of the Collections class. This is the third possible solution to solve this problem.
