Find me

Report a typo

Write a findMe function that takes a string as input and returns a concatenated string of all the words that start with the $ symbol in the source. Each word may contain any symbol except for space. The resulting words must not include the $ symbol, only word contents.

Sample Input 1:

we study $in $University in Paris

Sample Output 1:

in University
Write a program in Scala 3
def findMe(s: String): String =
??? // Write your code here
___

Create a free account to access the full topic