I have a string variable s, and I have a map data structure(with string keys) m.
I want to check if each letter in s is present in m, so I do m.containsKey(s[i]).
Since, map containsKey function expects string argument, I get the following error:
invalid conversion from char to const char*
Any ideas, on how to convert a char to a string data-type?
Take the substring instead of indexing.