Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Nested hash of hashes - Perl to Java

by vit (Friar)
on Jul 27, 2013 at 15:07 UTC ( [id://1046655]=perlquestion: print w/replies, xml ) Need Help??

vit has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,
Nowdays many of us have to merge Java and Perl codes (I do it a lot) or reprogram Perl codes to Java.
One of Perl's beauties is nested hashes
$hash{key1}...{keyN} = val
which in Java is pretty clumsy. Could anybody share with me a good java method which fills out a HashMap of HashMap on N nested levels. Purely String version or same Obj version is OK for me.

Replies are listed 'Best First'.
Re: Nested hash of hashes - Perl to Java
by LanX (Saint) on Jul 27, 2013 at 15:33 UTC
        LOL interesting: =)

        Took me some searching to find references in the archive: JavaJunkies: Open For Business

        update

        but IMHO Perlmonks used to have a Java board isn't correct, rather others tried to use the board software for Java discussions.

        Cheers Rolf

        ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1046655]
Approved by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found