Tag: Upgrade Java SE7
-
How to reverse all the numbers at even positions in an array of integers
This is the first solution to reverse all the numbers at even positions. This solution modifies the same array. The resultant array has all the numbers reversed only even positions.
-
How to move all Zero numbers to end in an array of integers using temp array
This is the second solution to move all Zero numbers to the end of an array of integers. This solution uses the temporary array. The resultant array has all non-zero numbers moved left, and all Zero numbers moved to the end.
-
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 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.
