# The function printArray doesn't exist?

**URL:** <https://discourse.processing.org/t/the-function-printarray-doesnt-exist/10452>\
**Category:** Beginners\
**Created:** [April 19, 2019, 8:56am UTC](https://discourse.processing.org/t/the-function-printarray-doesnt-exist/10452 "2019-04-19T08:56:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bking](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@bking](https://discourse.processing.org/u/bking)\
**Post date:** [April 19, 2019, 8:56am UTC](https://discourse.processing.org/t/the-function-printarray-doesnt-exist/10452/1 "2019-04-19T08:56:12Z")

</div>

Hi,  
I don’t manage to see an array of float.  
I don’t understand why. The array is declared like that before the setup

public float[] naturalFrequency;

and I use

printArray (naturalFrequency[i]);

but it doesn’t work

I put the program below

```auto
private void solveRK4() {
		calculateOrder();
		for (int i = 0; i < networkSize; i++) {
			float noise = parent.noise(time);
			float k1 = stepSize*differentiate(phase[i], noise, naturalFrequency[i]);
			float k2 = stepSize*differentiate(phase[i] + k1/2, noise, naturalFrequency[i]);
			float k3 = stepSize*differentiate(phase[i] + k2/2, noise, naturalFrequency[i]);
			float k4 = stepSize*differentiate(phase[i] + k3, noise, naturalFrequency[i]);
			phase[i] = (phase[i] + (k1 + 2*k2 + 2*k3 + k4)/6) % TWO_PI;

  printArray (naturalFrequency[i]); 
		}

		
		time += stepSize;
	}

```

Thanks a lot

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [April 19, 2019, 9:20am UTC](https://discourse.processing.org/t/the-function-printarray-doesnt-exist/10452/2 "2019-04-19T09:20:21Z")

</div>

> [@bking](#):
>
> printArray (naturalFrequency[i]);

is not a array, just one element so it can not work.  
try:

```auto
printArray(naturalFrequency);

```

or not use it at all,  
just

```auto
println(naturalFrequency);
//OR
println(naturalFrequency[i]);

```

depends on the format in the console you want see

---

<div class="post-metadata">

**Author:** ![bking](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@bking](https://discourse.processing.org/u/bking)\
**Post date:** [April 19, 2019, 10:34am UTC](https://discourse.processing.org/t/the-function-printarray-doesnt-exist/10452/3 "2019-04-19T10:34:54Z")

</div>

Thanks u it works.  
How can I make a heart to answer?  
I don’t find the heart button.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 21, 2019, 3:55pm UTC](https://discourse.processing.org/t/the-function-printarray-doesnt-exist/10452/4 "2019-04-21T15:55:06Z")

</div>

> [@bking](#):
>
> How can I make a heart to answer?  
> I don’t find the heart button.

Click on the heart immediately below the post, next to the link, …, and Reply.

![43%20AM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/67c08cd72a091365c2045feec93fdabb0f82df7a.png)
