0

How can I parse an Item in an Array? Here is an example of where this is needed:

String thing= Array1;
    final String[] SplitArray = thing.substring(1).split(" ");

This splits it on the space and makes the array SplitArray now how can i split each item in the array on the ;? Say my array is Array1 = Hello;Hellothere Hi;Hithere

1
  • There is hardly any relation to Android here. This is a basic Java issue. Commented Oct 21, 2011 at 12:48

2 Answers 2

1

.split(";| ") in case you wanna split both ';' and spaces.

Sign up to request clarification or add additional context in comments.

Comments

0

Well, .split(";") does that. What are you really asking?

1 Comment

I am asking how to split the item after its in the array.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.