0

Can I get a method to parse a string eg: {"apple","fruit"} and put the elements in a two D array.

4
  • Yes, you can. Yes, you can. Yes, you can. Commented Feb 3, 2011 at 6:04
  • Umm ... how do you put the elements of a list into a 2D array? Commented Feb 3, 2011 at 6:12
  • What are you trying to parse here? Are you just trying to get each character of the strings in your first array, into a 2-d array? Commented Feb 3, 2011 at 6:14
  • yes getting the first and second names to put in a 2-D array. Commented Feb 3, 2011 at 6:36

1 Answer 1

1

StringTokenizer might be useful to you.

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.