public static ArrayList RemoveRepeatNumber(String[]input)
{
ArrayList arraylist=new ArrayList();
int k=0;
for(int i = 0;i<input.length;i++)
{
boolean exist=true;
for(int j=0;j<arraylist.size();j++)
{
if(arraylist.get(j).toString().equals(input[i]) )
{
exist=false;
break;
}
}
if(exist)
{
arraylist.add(k,input[i]);
k+=1;
}
}
return arraylist;
}
public static void main(String[]args)
{
String []st={"30","30","29"};
ArrayList str =RemoveRepeatNumber(st);
for(int i=0;i<str.size();i++)
{
System.out.println(str.get(i));
}
}