# How to enter unlimited parameters info a function

**URL:** https://discourse.processing.org/t/how-to-enter-unlimited-parameters-info-a-function/27207
**Category:** Beginners
**Created:** [January 19, 2021, 8:18pm UTC](https://discourse.processing.org/t/how-to-enter-unlimited-parameters-info-a-function/27207 "2021-01-19T20:18:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)
#### Post date: [January 19, 2021, 8:18pm UTC](https://discourse.processing.org/t/how-to-enter-unlimited-parameters-info-a-function/27207/1 "2021-01-19T20:18:13Z")

</div>

Hi!  
I’d like to know if there is a way to insert unlimited number of parameters into a custom function.

I want to replicate things like:  
`println(i1,i2,i3,i4,i5,...); `  
The way I do it right now is by doing:

```auto
void aaa(String info) {
   String parameters[] = split(info,",");
   //and use parameters by using parameters[i]
}

```

Is there a way to replicate it?

---

<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: [January 19, 2021, 8:46pm UTC](https://discourse.processing.org/t/how-to-enter-unlimited-parameters-info-a-function/27207/2 "2021-01-19T20:46:13Z")

</div>

> <https://stackoverflow.com/questions/7243145/java-method-with-unlimited-arguments>

Not too knowledgeable on this though sorry.

See also

> <https://stackoverflow.com/questions/2330942/java-variable-number-or-arguments-for-a-method>

---

<div class="post-metadata">

### Author: ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)
#### Post date: [January 19, 2021, 9:27pm UTC](https://discourse.processing.org/t/how-to-enter-unlimited-parameters-info-a-function/27207/3 "2021-01-19T21:27:51Z")

</div>

here is my result! (An example with possible input a(); a(singleParameter); a(1st,2nd,…); a(“aaa”,“hello”,13,-33.44,true);  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/f/fb4b422c0c4fcfff7e491cfb5fa4fa7e33106901.png) ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/41c58b35a70837811dff97d5c0ab454052d1f067.png)
