I am trying to create a unique 2d arraylist. The number of columns are fixed and the number of rows should be dynamic. However, for the first column I want to have the type as chars. The rest of the columns should be with int types. Is there a way of doing this? I am using it for Arithmetic compression.
This is what I currently have
//encoding section
float low = 0;
float high = 1;
float range = high - low;
List<int[]> rowList = new ArrayList<int[]>();
rowList.add(new int[] { 1, 2, 3 });
rowList.add(new int[] { 4, 5, 6 });
rowList.add(new int[] { 7, 8 });
for (int[] row : rowList)
{
System.out.println("Row = " + Arrays.toString(row));
}