val strWithPunct = "hi there! How are you doing today? , #, %..." val punctuationSet = setOf('!', '#', '%', '.') val count = strWithPunct.count { c -> c in punctuationSet } println("$count ")
This blog is for ANDROID developers which contains information about development, resolutions of common issues and much more about ANDROID...