What's the best way in Kotlin to load a java.lang.Properties to a Map<String, String>? So far I have got:
for ((key, value) in javaProperties) { if(key is String && value is String) { map.put(key, value)}} Is there a better way to implement it in Kotlin?