Hi All,
Can i have as below? As one array (dimension is fixed) and have a ArrayBuffer to hold all instances of each row.
var a = Array( “Field”, “OField”,Array(“a”, “b”, “c”), Array(“d”, “e”, “f”, “g”, “h”) )
list+=Array( “Field1”, “OField1”,Array(“a1”, “b1”, “c1”), Array(“d1”, “e1”, “f1”, “g1”, “h1”) )
list+=Array( “Field2”, “OField2”,Array(“a2”, “b2”, “c2”), Array(“d2”, “e2”, “f2”, “g2”, “h2”) )
println(list(0)(2)(0)) —> will print a
Kindly suggest. How to initialize, add and retrieve values with the right collection type.
Can anyone please suggest.
I am trying to create a string array. It should incremental like a ArrayBuffer or ListBuffer as the dim is not fixed. But not able to decide which collection exactly i should be going with.
Each row needs to be at (0) index followed by 2nd, 3rd and 4th columns divided among SUBARRY1 and SUBARRAY2.
Example: Below structure should be for each of the rows.
OFIELD_NAME --> ELIG_INDC
OFIELD --> XXX
RCTRYNUM–> ***
BH_LEGACY_CD–> *
RULE_ID–> A1
OVALUE–> N
IFIELD_NAME–> SYS_ID
OP_CD —> EQ
IFIELD --> 04
ect…