Print result

Report a typo

Look at the 3D list of mutList3D:

val mutList3D = mutableListOf(
    mutableListOf(mutableListOf(0, 1), mutableListOf(2)),
    mutableListOf(mutableListOf(4, 5, 6, 7), mutableListOf(8, 9)),
    mutableListOf(mutableListOf(10, 11), mutableListOf(12)),
    mutableListOf(mutableListOf(13, 14, 15), mutableListOf(16, 17, 18))
)

Match the println() commands and their output:

Match the items from left and right columns
println(mutList3D.size)
println(mutList3D.first().size)
println(mutList3D[mutList3D.size - 1].last())
println(mutList3D.first().last().size)
4
2
[16, 17, 18]
1
___

Create a free account to access the full topic