Advertisement
ak47suk1

multidimensional arraylist

Oct 1st, 2010
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. Hello,
  2. I think you can also do the same thing by the following line.
  3. Code:
  4.  
  5. ArrayList <ArrayList <ArrayList <String>>> list = new ArrayList <ArrayList <ArrayList <String>>>();
  6.  
  7. And access to the element i, j, k is as follows without reimplementing the get method:
  8. Code:
  9.  
  10. list.get(i).get(j).get(k);
  11.  
  12. I hope this will hep you. If you have any more problem then do post back.
  13. Reply With Quote
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement