I am writing one parser on java. It is necessary to save such variables in a list or something else.

index, id, (type, x, y, z) id1, (type1, x1, y1, z1) id2, (type2, x2, y2, z2) 

index is the main variable, that is, all references with parameters will go to it (index 1, id1 - id *)

    2 answers 2

    (type, x, y, z) wrap in a separate class (for example, Params ) and put it in Map<String, Params> (depending on what you have there as an id )

      Conveniently in the array, but better as advised Nofare.