Category: Reverse
-
How to reverse each word in a sentence without using reverse method
This is the first complete solution to reverse each word in the given input line of strings. This program uses the core logic to reverse each string. This code now only accepts alphanumeric strings instead of pure integers, symbols and null strings.
-
How to reverse all the numbers in an array of integers using stream
This is the third solution to reverse all the numbers in the given array. This solution uses IntStream, range and map methods.
-
How to reverse each word in a given sentence
This is the fourth solution to reverse each word of given line of strings. This program uses the map() method of java stream, and reverse() method of StringBuffer.
-
How to reverse each word in a sentence using StringBuffer class
This is the third solution to reverse each word in the given input sentence. This program uses the Single Abstract method, which implemented by using Lambda expression.
-
How to reverse all the data values in an Array
This is the second solution to reverse all the data values in an Array. This solution uses Java Generics, which defines a Generic method for reversing given Array data values. This solution modifies the same array, and the resultant array has all the data values reversed. The data values are of any type such as…
-
How to find reverse of an integer and string data value
This is the fourth solution to find the reverse of an integer or string data value by using the Generics. The internal logic of the Generic method uses the reverse method of StringBuffer class.
-
How to reverse all the numbers in an array of integers
This is the first solution to reverse all the numbers. This solution modifies the same array. The resultant array has all the numbers reversed.
-
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 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.
