Yes, as you and Piet both said, it is better style to have the ... as part of the type rather than the parameter name. But the compiler will accept both. If you look in the Formatter documentation, you will find the better format used. Strictly speaking, the method signature should not include parameter names.
Campbell Ritchie wrote:Yes, as you and Piet both said, it is better style to have the ... as part of the type rather than the parameter name. But the compiler will accept both. If you look in the Formatter documentation, you will find the better format used. Strictly speaking, the method signature should not include parameter names.