How to delete duplicate values in a list or set?

In java or python i can use for loops to check it underscore i such as

for(i:0;i<100;i++){

  for(j:i+1;j<100,j++){

if list[i]=list[j]

list[i]="common value"

}

}

if arraylist contains["common value"]{

arraylist.remove["common value"]

}

for java a!forEach, i can't find its underscore i, i don't know which way can express it fv!index like this way in the parenthesis? how to do it?

  Discussion posts and replies are publicly visible