How to traverse a list which consists of integers and inner lists of different depths in Java?
Example list:
[4, 3, [4, 6, 4], 7, 9, [4, 3, [8, 1, 0], 1],