Triple Dot (...) Syntax in Java? Meaning and conversions? -


this question has answer here:

i have avl tree balance method:

private void setbalance(node... nodes) {     (node n : nodes)         n.height = height(n.right) - height(n.left); } 

it uses (...) syntax have not encountered before. can't find on google or so. seems type of list syntax, or array. looks find in ruby.

could knowledgeable in java's syntax explain code me, , perhaps show me version without ... syntax?

thanks.

these varargs . same arrays can 0 many. more info might assist.


Comments