error: non-static method (datatype[]) cannot be referenced from a static context AND incompatible ty