src/file_handling/XMLParser.java
private void fillCellData(Element e, List<String> list, int dimension) {
		List<String> values = getTextValue(e, CELL);
		for(String text: values){
			list.add(text);
		}
		
		CellDataGenerator gen = new CellDataGenerator(list, dimension);
		CellDataDecoder dec = new CellDataDecoder(gen);
		List<String> newData = dec.decodeData(e);
		
		list.clear();
		list.addAll(newData);
	}
/**
	 * Fills a List with the initial cell states given in the XML file.
	 * 
	 * @param e
	 * @param list
	 * @param dimension of grid to be filled by Cells
	 */
Fills a List with the initial cell states given in the XML file.

@param e
@param list
@param dimension of grid to be filled by Cells
Fills a List with the initial cell states given in the XML file . @param e @param list @param dimension of grid to be filled by Cells
private void fillCellData(Element e, List<String> list, int dimension) {
		List<String> values = getTextValue(e, CELL);
		for(String text: values){
			list.add(text);
		}
		CellDataGenerator gen = new CellDataGenerator(list, dimension);
		CellDataDecoder dec = new CellDataDecoder(gen);
		List<String> newData = dec.decodeData(e);
		list.clear();
		list.addAll(newData);
	}
private void fillCellData ( Element e , List < String > list , int dimension ) { List < String > values = getTextValue ( e , CELL ) ; for ( String text : values ) { list . add ( text ) ; } CellDataGenerator gen = new CellDataGenerator ( list , dimension ) ; CellDataDecoder dec = new CellDataDecoder ( gen ) ; List < String > newData = dec . decodeData ( e ) ; list . clear ( ) ; list . addAll ( newData ) ; }
Fills a List with the initial cell states given in the XML file.
Fills a List with the initial cell states given in the XML file .