一个函数定义如下: public void doSomething( in...
发布于 2022-03-03 16:11:44
一个函数定义如下:
如果mat为下列2行6列的值:
那么,doSomething(mat)执行完成后,mat的值是?()
public void doSomething( int[][] mat) { for( int row = 0 row < mat.length row++) for(int col = 0 col < mat[0].length col++) mat[row][col] = mat[row][mat[0].length - 1 - col] }
如果mat为下列2行6列的值:
1 3 5 7 9 11 0 2 4 6 8 10
那么,doSomething(mat)执行完成后,mat的值是?()
登录后免费查看答案
关注者
0
被浏览
13