public void removeDup(){
String[] arr = {"1","1","2","3","3"};
boolean exists = false;
String[] arr2 = new String[arr.length];
int count1 = 0;
for(int loop=0;loop<arr.length;loop++)
{
String val = arr[loop];
exists = false;
for(int loop2=0;loop2<arr2.length;loop2++)
{
if(arr2[loop2]==null)break;
if(arr2[loop2]==val){
exists = true;
}
}
if(!exists) {
arr2[count1] = val;
count1++;
}
}
}