all 1 comments

[–]fschmidt 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

All this is Java specific. And wrong in a few places. For example in #4 it should be a set, not map. And the loop is over the array.