Take a look at the snippet. The condition somewhat overlaps. Please, choose the right output.
val x = 11
when (x) {
10, 11 -> print("a")
11, 12 -> print("b")
}Take a look at the snippet. The condition somewhat overlaps. Please, choose the right output.
val x = 11
when (x) {
10, 11 -> print("a")
11, 12 -> print("b")
}Create a free account to access the full topic