You are always adding the same
Modelclass obj = new Modelclass();
That you created outside of the for loop. Then, inside the loop, you are modifying the values.
Since it is always a reference to the same object, you are modifying all of the items in the ArrayList.
Try this instead:
for (int i = 0; i < 10; i++) {
Modelclass obj = new Modelclass(); //This is the key to solve it.
obj.setName(2 + i);
obj.setRoolno(4 + i);
System.out.println(obj);
al.add(obj);
System.out.println(obj.getName() + "" + obj.getRoolno());
}