参差不齐的数组 [英] Ragged and Jagged Arrays
本文介绍了参差不齐的数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
参差不齐的数组和参差不齐的数组有什么区别?根据我的研究,两者具有相同的定义,即具有不同列长的二维数组.
What is the difference between ragged and jagged arrays? As per my research both have the same definitions, i.e. two-dimensional arrays with different column lengths.
推荐答案
您的问题已经给出了正确答案^^,但出于完整性考虑.
锯齿状或也称为锯齿状的数组是n维数组,不需要使用反角表示:
A Jagged or also called Ragged array is a n-dimensional array that need not the be reactangular means:
int[][] array = {{3, 4, 5}, {77, 50}};
For more examples you could look here and here!
这篇关于参差不齐的数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文