Category: Java
-
How to find sum of digits in an alpha numeric value
This is the first solution to find the sum of digits from a given alpha numeric value by using String and Character class methods.
-
How to find sum of digits in a given float value
This is the second solution to find the sum of digits from a given float value, by using the String and Character methods.
-
How to find sum of digits in an integer value
This is the first solution to find the sum of digits from a given integer value using the core logic.
-
How to find factorial of a big integer value
This is the second solution to find the factorial of big integer value.
-
How to find length of alpha numeric value or string
This is the first solution to find the length of a given alpha numeric or string value. This approach uses direct string class length method.
-
How to find length of double value using String class
This is the first solution to find the length of a given double value. This approach converts double value to string and uses the length method.
-
How to find length of float value using Float class
This is the second solution to find the length of a given float value. This approach uses Float wrapper class to convert to string before using the length method.
-
How to find length of float value using String class
This is the first solution to find the length of a given float value. This approach converts float value to string and uses the length method.
-
How to find length of long integer value using String class
This is the first solution to find the length of a given long integer value. This approach converts long integer to string and uses the length method.
-
How to find length of integer value using Integer class
This is the third solution to find the length of a given primitive int data type value. This approach uses Integer wrapper class to convert to string before using the length method.
