How to use a jagged array or a pointer array to construct the Rootish Array Stack Data Structure in Java.
4 次查看(过去 30 天)
显示 更早的评论
Basically, I'd want to know how to retrieve an array that includes another array and decrease or enlarge it. For example, Aa,b,c,d a0, b1,2 c3,4,5 d6,7,8,9 And if I want to add another integer to it, I can use java to increase it Aa,b,c,d,e a0, b1,2 c3,4,5 d6,7,8,9 e10.
Rootish Array Stack is essentially a data structure similar to array that stores array in the manner described above.
I saw an article that stated that I could utilise a List of Lists. Additionally, the List's size might change as you add/remove entries. I attempted to use a jagged array, however I cannot grow it or shrink it.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Java from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!