# Find the number of elements in a single row

**URL:** <https://discourse.processing.org/t/find-the-number-of-elements-in-a-single-row/28487>\
**Category:** Coding Questions\
**Created:** [March 13, 2021, 7:36am UTC](https://discourse.processing.org/t/find-the-number-of-elements-in-a-single-row/28487 "2021-03-13T07:36:22Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![javagar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/javagar/32/11434_2.png) [@javagar](https://discourse.processing.org/u/javagar)\
**Post date:** [March 13, 2021, 1:15pm UTC](https://discourse.processing.org/t/find-the-number-of-elements-in-a-single-row/28487/5 "2021-03-13T13:15:43Z")

</div>

Hi @Criste44,

Consider this example:

```auto
void setup() {
  int nums[][] = {{3, 4, 7}, {1, 9, 8, 6}, {8, 1, 2}};
  System.out.println(nums[1].length);
}

```

Output:

```
4
```

---

_[View the full topic](https://discourse.processing.org/t/find-the-number-of-elements-in-a-single-row/28487)._
