Lonely Integer

  • + 0 comments

    JAVA

    for(Integer n: a){ int frec = Collections.frequency(a, n); if(frec==1){ num=n; } } return num;