arr.add(mas[0]);
for(int i=1;i<mas.length;i++) {
for(int j=0;j<arr.size();j++) {
if(mas[i].equals(arr.get(j))||mas[i].equals("")){
break;
}
arr.add(mas[i]);
}
}
for(int j=0;j<arr.size();j++) {
System.out.print(arr.get(j)+";");
}
i dont understand what is wrong
