Tag: String methods
-
How to write JUnit test code in Java for the for Anagram check function ?
This is the JUnit 5 solution to cover all kinds of inputs provided to Anagram function. This Unit test executes tests for the class ‘AnagramJ8’.
-
How to find sum of digits in a number
This is the complete solution to find the sum of digits from a given number using the String class, and a few methods. This solution covers all validations. Regular expressions are also used in this solution for validating the given input.
-
How to find sum of digits in an alpha numeric value
This is the first complete solution to find the sum of digits from a given alpha numeric value by mainly using String and Character class methods along with regular expressions and exceptions.
