Assign undetermined number of variables in method

please format code with </> button * homework policy * asking questions

What is the syntax for adding an undermined amount of variables to a method.

ie

void method(int a,int b,int c.....){

}

Hello,

I did a search for variable length arguments Java

:)

4 Likes

thanks wasnt sure what to search for…

2 Likes