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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -