Series from For loop (is there a repository for Integer Sequences?)

Yes, I run your code without changes.

Type String \[ \] of the last argument to method println(Object…) doesn’t exactly match the vararg parameter type. Cast to Object \ [ \ ] to confirm the non-varargs invocation, or pass individual arguments of type Object for a varargs invocation.