Diamond operator is not supported on my Java
Fixed array assignment check with ^ and not !=