# How to not display blank fields from a csv file?

**URL:** <https://discourse.processing.org/t/how-to-not-display-blank-fields-from-a-csv-file/19668>\
**Category:** Coding Questions\
**Created:** [April 11, 2020, 4:59pm UTC](https://discourse.processing.org/t/how-to-not-display-blank-fields-from-a-csv-file/19668 "2020-04-11T16:59:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stage1](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Stage1](https://discourse.processing.org/u/Stage1)\
**Post date:** [April 11, 2020, 4:59pm UTC](https://discourse.processing.org/t/how-to-not-display-blank-fields-from-a-csv-file/19668/1 "2020-04-11T16:59:33Z")

</div>

Hello im currently plotting shapes on my 2d image whilst using the coordinates of longitude and latitude. However, i’ve got some blank fields which i do not want to appear on my image and when they are kept blank they still appear on my image as a whole at one location which i do not want. I just dont want to use these blank fields at all.

Things i’ve tried that did not work:

- Keeping the blank fields blank
- Renaming blank fields with Null, NULL or 0

None of these worked so i was wondering if there is another method which i have not tried?

Thanks

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [April 11, 2020, 6:20pm UTC](https://discourse.processing.org/t/how-to-not-display-blank-fields-from-a-csv-file/19668/2 "2020-04-11T18:20:36Z")

</div>

can you show your code here?

maybe there is an error

eg. you can’t check Strings with `==` instead use `word.equals("")`

[https://www.processing.org/reference/String\_equals\_.html](https://www.processing.org/reference/String_equals_.html)

or try `isEmpty()`

[https://docs.oracle.com/javase/8/docs/api/java/lang/String.html](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)
