What is the difference between these two?
result.add(tempList)
result.add(new ArrayList<>(tempList))
I am getting difference outputs.
/