How do you store an int value in Object? I'm sure you have an implementation that is derived from Object and in that case you should use generecity at a lower point of the hierarchy.
Say you have a class Person with an int value and then subclasses Man extends Person and Woman extends Person and you populate this ArrayList with men and women, you would do so like so:
List<Person> pList = new ArrayList<Person>();
Now, in your Person class you should have a get-method for the int value. For example if the int value is the person's age:
public int getAge() { return age; }
Then, to finally answer your question I would go about like so:
List<Person> firstList = new ArrayList<Person>();
List<Person> secondList = new ArrayList<Person>();
for (Person person:pList) {
if (person.getAge()==1) {
firstList.add(person);
}
else if (person.getAge()==3) {
secondList.add(person);
}
}//for
I hope I answered your question adequately.