I have a MutableMap(map) as below in a function, let’s assume we have N no.of entries in it. I need to validate values in the map and throw exception with key if it is a Null
. Please provide some suggestions on how to achieve using streams of java -8
fun validateRequest (map : MutableMap<String, Array<String>>)
I have tested this code and it works used JDK 1.8 that was my result