Triple Dot (...) Syntax in Java? Meaning and conversions? -
this question has answer here:
- java, 3 dots in parameters 8 answers
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.
Comments
Post a Comment