Fix this in your code and it'll work:
static void prints(int... ints) // notice the static keyword at the beginning!
The problem is not with the varargs, it's with the way you're calling an instance method from a static context. Also, make extra-sure that there are no other methods with conflicting signatures, for example these two methods will look the same to the compiler:
void prints(int... ints)
void prints(int[] ints)