Tag: toCharArray
-
How to check two sentences or strings are Anagram
This is the fourth solution to check whether the given two strings are Anagram are not. This program uses lambda expression with two parameters. The internal logic uses the String’s class methods toCharArray, contentEquals and Array’s sort method
-
How to check two sentences or strings are Anagram using String class
This is the first solution to check whether the given two strings are Anagram are not. This program uses toCharArray() method of String Class.
