Results 1 to 3 of 3
- 02-09-2013, 02:25 PM #1
Member
- Join Date
- Feb 2013
- Posts
- 1
- Rep Power
- 0
split sentences into word in java
How to split an `array` of sentences into an `array of array` of words?
If i can split the sentence using `split()` ..but it's used only single array.
but I need to do multiple array..
Eg:
sentences[0]="one sentence"
sentences[1]=" one sen...."
I need to split like this...
word[0][0]="one word" //first row first word
word[0][1]="second word"
word[0][2]="third word"
word[1][0]="..."//second row first word**
any one can help me.
- 02-09-2013, 02:41 PM #2
Re: split sentences into word in java
Please go through Guide For New Members and BB Code List - Java Programming Forum - Learn Java Programming and edit your post accordingly.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 02-09-2013, 02:42 PM #3
Re: split sentences into word in java
Well, you would start by declaring the `array of array`
If you don't know how to do that, go through Arrays (The Java™ Tutorials > Learning the Java Language > Language Basics)
Ask again if there's anything you don't get from that tutorial.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Help. Find a word and located sentences in the file
By rashad in forum New To JavaReplies: 1Last Post: 02-28-2010, 03:06 PM -
How to split a String using split function
By Java Tip in forum java.langReplies: 4Last Post: 04-17-2009, 08:27 PM -
Feature extraction from a text file in java. this is used for scoring the sentences
By joe_2110 in forum Advanced JavaReplies: 1Last Post: 02-04-2008, 08:26 PM -
How to split a String using split function
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:32 PM -
vars and if sentences in XSL-FO
By Alan in forum XMLReplies: 1Last Post: 05-31-2007, 02:24 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks