I cant figure how to do the following in java
In groovy, if I want to iterate over a map and inside that map the value is a list of lists. then get a specific index from a list of lists i.e. the following code will work
def total = value.collect { it.get(0) }*.toInteger().sum()
I read all lists with a specific index using the spread operator and convert all retrieved data to an integer and get the sum.
How do to this in Java?