How to work with nested Maps in JAVA efficiently?

In Python one can easily do:

if dictionary[objA][objB][objC][objD] == None:
    dictionary[objA][objB][objC][objD] = objE

But in Java one needs to have a null check at every level. Is there any efficient way to convert the python code to Java code.

0 Comment

NO COMMENTS

LEAVE A REPLY

Captcha image