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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -