# How to text array

**URL:** <https://discourse.processing.org/t/how-to-text-array/30192>\
**Category:** Coding Questions\
**Created:** [May 20, 2021, 2:47pm UTC](https://discourse.processing.org/t/how-to-text-array/30192 "2021-05-20T14:47:11Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [May 20, 2021, 3:44pm UTC](https://discourse.processing.org/t/how-to-text-array/30192/12 "2021-05-20T15:44:05Z")

</div>

```auto
void setup () { 
size ( 800 , 800 );  

}
void draw () { 

  fill(0);
int[] x = { 
  50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
 50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
 50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
676, 61, 83, 69, 71, 50, 29, 31, 17, 39
};

fill(0);
int row = 0;
float spacing = 25;
float xx = 0;
for (int i = 0; i < x.length; i++) {
  xx += spacing;
  textSize(20);
  if(xx>width){
    xx = 0;
    row++;
  }
  println(row);
  text(x[i],xx,50+row*20);
}
}

```

---

_[View the full topic](https://discourse.processing.org/t/how-to-text-array/30192)._
