array creation in MVEL expression language -
i have list of entities have sort them based on amount, trying iterate list , amount entity object , want create array sort in mvel. stuck in array creation.
here code array creation
def array(lista,size) { object array[] = new object[size]; count = 0; for(entity:lista){ array[count] = entity.amount; count = count + 1; } system.out.println("array = "+ array); sortedarray = quicksort(array); };
can tell me how create arrays in mvel language.
thank you.
Comments
Post a Comment