I have a array-list which has data from my table. I want to create another array-list only containing integer from 0 to 23. The data has strings, negative numbers. It would be great if someone could give me example of it.
int col = 2;
List values = new ArrayList(table.getRowCount());
for (int row = 0; row < table.getRowCount(); row++) {
values.add(table.getValueAt(row, col));
}