When you pass a variable to a method it is copied. This means if you set that variable in the method it has no effect on the caller. i.e. it doesn’t initialise the callers copy of the variable. You need to change your code to look like this.
shetatch = z1[i].shetach(length);
The variable shetatch
inside the method has the same name. but otherwise nothing in common.
solved Syntax error with an extend in Java