0

I'm following a java tutorial named "Java Swing first programs" and I noticed something that troubles me. At one point, there's a function written like this:

private void createLayout(JComponent... arg)

I was wandering why there was a ... and what those it do?

The tutorial: http://zetcode.com/tutorials/javaswingtutorial/firstprograms/

Kévin Duguay
  • 761
  • 3
  • 12
  • 29

1 Answers1

0

See the documentation for Java varargs.

David Loewy
  • 329
  • 1
  • 10