add List difference between JAVA and C++