# Assign undetermined number of variables in method

**URL:** <https://discourse.processing.org/t/assign-undetermined-number-of-variables-in-method/39046>\
**Category:** Beginners\
**Created:** [October 2, 2022, 11:49am UTC](https://discourse.processing.org/t/assign-undetermined-number-of-variables-in-method/39046 "2022-10-02T11:49:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [October 2, 2022, 11:49am UTC](https://discourse.processing.org/t/assign-undetermined-number-of-variables-in-method/39046/1 "2022-10-02T11:49:15Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

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

ie

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

}

```

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 2, 2022, 12:09pm UTC](https://discourse.processing.org/t/assign-undetermined-number-of-variables-in-method/39046/2 "2022-10-02T12:09:50Z")

</div>

Hello,

I did a search for _variable length arguments Java_…

> **[Variable Arguments (Varargs) in Java - GeeksforGeeks](https://www.geeksforgeeks.org/variable-arguments-varargs-in-java/)**
>
> A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

`:)`

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [October 2, 2022, 12:33pm UTC](https://discourse.processing.org/t/assign-undetermined-number-of-variables-in-method/39046/3 "2022-10-02T12:33:11Z")

</div>

thanks wasnt sure what to search for…
