Im basically a php programmer now just wondering( or wandering!) on the shore of java sea. of course with a life boat, the stackoverflow.
Im struggling to make a multidimensional array in java where as in php it was simply possible $array["bla"]["blabla"]["blablabla"]...
This what I want to achieve
Array
(
[user] => UserName
[groups] => Array
(
[0] => group1
[1] => group2
[2] => group3
)
[categories] => Array
(
[0] => category1
[1] => category2
[2] => category3
)
[notification] => user notification string
[departments] => Array
(
[0] => department1
[1] => department2
[2] => department3
[3] => department4
)
[sub-deptmnt] => Array
(
[department1] => Array
(
[0] => subdep1
[1] => subdep2
)
[department2] => Array
(
[0] => another-subdep1
[1] => another-subdep2
[2] => another-subdep3
)
)
)
in php it is
$array["user"] = "UserName";
$array["groups"] = array("group1","group2","group3");
$array["categories"] =array("category1","category2","category3");
$array["notification"] = "user notification string";
$array["departments"] = array("department1","department2","department3","department4");
$array["sub-deptmnt"] = array("department1" => array("subdep1","subdep2"),"department2"=> array("another-subdep1","another-subdep2", "another-subdep3"));
Somebody please help me to move on..
Edit: To clarify desired array using php example