Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun sayHello(greeting: String,itemToGreet:String) = println("$greeting $itemToGreet")
- fun main(args: Array<String>) {
- val interestingThings = mutableListOf("Kotlin","Programming")
- interestingThings.add("Dogs")
- sayHello("Hi","brother!")
- val map = mutableMapOf(1 to "a", 2 to "b", 3 to "c")
- map.forEach{key,value -> println("$key -> $value")}
- }
Add Comment
Please, Sign In to add comment