From the following array list , i need to remove the comma and add every element to an cell in JTable. For example, My JTable - will have 12 columns and row 1 should be be filled 0 0 0 ....
Request you to help me in removing the commas from the list and add elements to the cell in JTable.
//code
ArrayList list = new ArrayList();
list.add("0 , 0 , 0 , 4 , 2 , 0 , 2 , 0 , 1 , 0 , 0 , 0");
list.add("1 , 0 , 0 , 4 , 2 , 0 , 3 , 0 , 1 , 0 , 0 , 1");
list.add("2 , 0 , 0 , 4 , 1 , 0 , 2 , 0 , 1 , 0 , 0 , 0");