Tag: IZ0-808 OCA Java Programmer 1
-
How to find length of all integers while giving as input one by one
This is the first solution to find the length of all the integers given during input. This program uses the HashMap collection to store the integer values and it’s respective length as key value pairs.
-
How to check whether a given integer is prime number or not
This is the first solution to find whether the given integer number is prime or not using the core logic, that is to check the divisibility of that number until the square root of that number.
-
How to find sum of integers in an array
This is the first solution to find the sum of integers in an array, using the core logic.
-
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.
