Write a Scala program to check whether a specified character is happy or not. A character is happy when the same character appears to its left or right in a string
Write a Scala program to check whether a specified character is happy or not. A character is happy when the same character appears to its left or right in a string.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer