I'm working with this data structure in PHP
Array
(
[leigh@bla] => Array
(
[chat1] => Array
(
[0] => Array
(
[0] => 0
[1] => hi
[2] => 123213312
)
)
[chat2] => Array
(
[0] => Array
(
[0] => 0
[1] => whatever?
[2] => 123213312
)
[1] => Array
(
[0] => 1
[1] => ok
[2] => 23123213
)
)
)
[nelson@bla] => Array
(
[chat1] => Array
(
[0] => Array
(
[0] => 1
[1] => hello
[2] => 1232132123
)
)
)
)
Here is the PHP code:
<?php
$arrTemp['leigh@bla']['chat1'][] = array(0, 'hi', '123213312');
$arrTemp['leigh@bla']['chat2'][] = array(0, 'whatever?', '123213312');
$arrTemp['leigh@bla']['chat2'][] = array(1, 'ok', '23123213');
$arrTemp['nelson@bla'] = array('chat1'=>array(array(1, 'hello', '1232132123')));
echo '<pre>';
print_r($arrTemp);
I'm trying to store this structure in Java. But struggling to find a suitable type, i've tried ArrayList> etc. What would be the best way of storing this structure in Java?