Results 1 to 2 of 2
Thread: String Splitting
- 12-04-2009, 07:26 AM #1Member
- Join Date
- Dec 2008
- Rep Power
I have a text file and I read it by buffered reader ..
but when I split each line by split() method I face a problem
that it doesn't split the line as I want, here's an example :
*let the last line of the text above is read and stored in a string named "A".
String  words = A.split("[,. ]");
then I wanted to determine location of each word in this string.. (e.g the word "that" is stored in cell  in the array)
but when I was working and trying it, it gave me the word "here's" in the cell  and I want it in cell ..
this's the problem, I looked everywhere but couldn't find solution :( !!
- 12-04-2009, 08:17 AM #2
- By Dieter in forum Advanced JavaReplies: 5Last Post: 09-30-2009, 09:46 AM
- By Lunarion in forum New To JavaReplies: 3Last Post: 04-17-2009, 08:00 AM
- By mintu in forum New To JavaReplies: 3Last Post: 02-28-2009, 09:41 AM
- By phil128 in forum New To JavaReplies: 11Last Post: 01-12-2009, 12:51 PM
- By itsme in forum New To JavaReplies: 1Last Post: 12-11-2007, 04:08 PM