• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: How to add items back to an ArrayList after appending to StringBuilder?

Resolved: How to add items back to an ArrayList after appending to StringBuilder?

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

What is the way to create an ArrayList from textArray again? Because I add the textArray to SQLite since SQLite does not accept an Array, but in this way I can add the items to database, but don’t know how to make an array again when I retrieve them from SQLite.

Answer:

If you want to split the String at the line breaks, you can try this:

Edit


Be aware of the comment from @Robert, since this will split the given String on every line break char.

If you have better answer, please add a comment about this, thank you!

java stringbuilder
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: The ‘Access-Control-Allow-Origin’ header contains multiple values ‘*, *’, but only one is allowed. cors error not resolving

02/04/2023

Resolved: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘crm.email’ doesn’t exist (Connection: mysql, SQL: select count(*) as aggregate from `email`

02/04/2023

Resolved: Regex: Curly braces in reverse? Match X characters before a string?

02/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.