Method arguments are input-only—so when you make changes to an array from within a Java function, this does not affect the array in the Mosel model. Similarly when you pass a Mosel text object, it becomes a Java String and cannot be modified from Java.