Tag: charAt
-
How to check whether a number is Disarium or not using stream
This is the second solution to check the number for Disarium. This solution uses IntStream, reduce methods of Stream. The Disarium number is say for a given number 351, evaluate the powers from the left side as power (3 * 1) + power (5 * 2) + power (1 *3) , the sum of all…
-
How to count number of lines, words and characters in a file
This is the first solution to count number of lines, words and characters in a given file. This approach uses the FileReader, BufferedReader, StringTokenizer and String methods.
-
How to find strings with no vowels in a file
This is the first solution to find all the strings with no vowels, in a given file. This approach uses the FileReader, BufferedReader, StringTokenizer and StringBuffer methods.
-
How to check a string can be eligible to form a palindrome
This is the third solution to check whether a string can be formed as a palindrome. This approach uses the eliminating the repeated characters from the input string using the String Buffer class.
-
How to extract characters and numbers from an Alphanumeric value
This is the second solution to extract characters and numbers from an alpha numeric value into separate strings. This program scans each character and checks ASCII range of alphabets, and numbers.
