How to implement the operator [] for set a value in two dimensional array?

前端 未结 0 1350
北海茫月
北海茫月 2021-01-19 23:24

I have the following array:

 val arr = Array(3){column-> IntArray(5){it+column} }

i want to set the value 5 in the place arr[1][3] (index

相关标签:
回答
  • 消灭零回复
提交回复
热议问题