Sometimes you want a method to accept zero, one, or ten integers without wrapping them in new int[]{...} every call. Java's varargs syntax turns trailing arguments into an ordinary array automatically.
More lessons in Complete Core Java