How do I turn a string into an array?

The split() method splits a string into an array of substrings . The split() method returns the new array. The split() method does not change the original string. If (” “) is used as separator, the string is split between words.

Sizin İçin Seçtik  When should we use array in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *