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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -