# Is "StringBuffer" deprecated?

**URL:** https://discourse.processing.org/t/is-stringbuffer-deprecated/30844
**Category:** Beginners
**Created:** [June 21, 2021, 9:31pm UTC](https://discourse.processing.org/t/is-stringbuffer-deprecated/30844 "2021-06-21T21:31:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RenanRabelo](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@RenanRabelo](https://discourse.processing.org/u/RenanRabelo)
#### Post date: [June 21, 2021, 9:31pm UTC](https://discourse.processing.org/t/is-stringbuffer-deprecated/30844/1 "2021-06-21T21:31:35Z")

</div>

Hi everyone,

I was watching [this](https://www.youtube.com/watch?v=f6ra024-ASY) video about L-Systems and Daniel used “StringBuffer” in his code, but I can’t find anything about “StringBuffer” in Processing reference.

Is this data type deprecated?

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: [June 21, 2021, 10:05pm UTC](https://discourse.processing.org/t/is-stringbuffer-deprecated/30844/2 "2021-06-21T22:05:49Z")

</div>

I think you can use it in processing but it is Java

> **[StringBuffer class in Java - GeeksforGeeks](https://www.google.de/amp/s/www.geeksforgeeks.org/stringbuffer-class-in-java/amp/)**
>
> A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

Which means you can use it in processing

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [June 22, 2021, 7:05am UTC](https://discourse.processing.org/t/is-stringbuffer-deprecated/30844/3 "2021-06-22T07:05:24Z")

</div>

It’s pretty much deprecated in Java though - you almost always want StringBuilder instead.
