import java.util.ArrayList;
public class Try {
/**
* @param args
*/
public static void main(String[] args) {
String test="100,120,166,1555,120,150,100";
String[] test1=test.split(",");
ArrayList list=new ArrayList();
for(int i=0;i<test1.length;i++)
{
if(!list.contains(test1[i]))
list.add(test1[i]);
}
System.out.println("hehe"+list.size()+"haha");
for(int i=0;i<list.size();i++)
System.out.println("hehe"+list.get(i));
}
}
public class Try {
/**
* @param args
*/
public static void main(String[] args) {
String test="100,120,166,1555,120,150,100";
String[] test1=test.split(",");
ArrayList list=new ArrayList();
for(int i=0;i<test1.length;i++)
{
if(!list.contains(test1[i]))
list.add(test1[i]);
}
System.out.println("hehe"+list.size()+"haha");
for(int i=0;i<list.size();i++)
System.out.println("hehe"+list.get(i));
}
}