how to keep inbounds for 2d array kotlin code example Example: 2d array in kotlin val array = Array(row) { IntArray(column) }