Mahi
04/06/2019, 9:42 AMwhile (index < 3) {
index ++
val result = cakesList?.let{
if(index == 2) {
"HelloString"
} else {
2
}
}
println("result value = $result")
when(result) {
is String -> println(" result variable is a String")
is Int -> println(" result variable is Integer")
}
otakusenpai
04/06/2019, 9:46 AMotakusenpai
04/06/2019, 9:48 AMsitepodmatt
04/06/2019, 10:00 AMMahi
04/07/2019, 6:48 PM