You are viewing a single comment's thread. Return to all comments →
JAVA
for(Integer n: a){ int frec = Collections.frequency(a, n); if(frec==1){ num=n; } } return num;
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
JAVA
for(Integer n: a){ int frec = Collections.frequency(a, n); if(frec==1){ num=n; } } return num;