I have this AVL tree with a balance method:
private void setBalance(Node... nodes) {
for (Node n : nodes)
n.height = height(n.right) - height(n.left);
}
It uses a (...) syntax I have not encountered before. I can't find it on google or SO. It seems to be some type of list syntax, or array. Looks like something I would find in ruby.
Could someone knowledgeable in Java's syntax explain this code to me, and perhaps show me a version without the ... syntax?
Thanks.