Java Create Arraylist With Fixed Size Encoding