Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • Unfortunately this won't work because I'm not splitting on just comma, I'm splitting on quote comma quote (","), since this is three characters it won't work. Secondly .read() returns an integer, which I would rather not use. But your definitely on the right track, I've been trying to find something that does read it all instead of line by line but I can't. But thank you for the answer. Commented Jul 28, 2014 at 2:12
  • This does separate all of them, but for some reason it stops right before the last description, the one which begins with: A. pg. 803 #24,25,28,30,31 Commented Jul 28, 2014 at 5:11
  • My mistake, I forgot to process the last element. The post has been edited ;) Commented Jul 28, 2014 at 5:53
  • one more thing, would their be a way to repeat this method 8 times, but each time "str" is set to a different variable? Commented Jul 28, 2014 at 5:57
  • 1
    You can pass another variable to the function to specify to which variable you want to set the String. I have put an switch case example in my post. Commented Jul 28, 2014 at 6:25