Category: Java
-
How to find first and second biggest numbers in an ArrayList of integers
This is the fourth solution to find the first and second biggest numbers from the given ArrayList of integers, using Collections class.
-
How to find biggest number in an array of integers using streams
This is the third solution to find the biggest number from the given array of integers, using stream method of Arrays class. This stream uses filter(0, max(), and getAsInt() methods.
-
How to find first and second biggest numbers in an array of integers using sort
This is the second solution to find the first and second biggest numbers from the given array of integers, using built-in sort method of Arrays class.
-
How to find first and second biggest numbers in an array of integers
This is the first solution to find the first and second biggest numbers from the given array of integers, without using any built in methods.
-
How to find reverse of a float value using StringBuffer class
This is the sixth solution to find the reverse of a float value using the StringBuffer (mutable) class.
-
How to find reverse of a float value using StringBuilder class
This is the fifth solution to find the reverse of a float value using the StringBuilder (mutable) data type.
-
How to find reverse of an integer value using the core logic
This is the fourth solution to find the reverse of an integer value, by using the core logic of forming the number in the reverse order.
-
How to find reverse of an integer value using String class
This is the third solution to find the reverse of an integer value using String (immutable) class. This shows the core logic of storing the characters in reverse direction.
-
How to find reverse of an integer value using StringBuffer class
This is the second solution to find the reverse of an integer value using the StringBuffer (mutable) class.
-
How to find the reverse of an integer value using StringBuilder class
This is the first solution to find the reverse of an integer value using the StringBuilder (mutable) class type.
