in reply to array inside a hash

I fyou ment to print the string "aaa" of the array (and not of the hash as in the example you gave), then do this:
print "string:", $java{aaa}[0];
for adding elements tothe array:
push(@{$java{aaa}}, $element); # or: $java{aaa}[$index] = $element;
These are elementry things and I suggest you read the Tutorials.

Hotshot