Results 1 to 3 of 3
  1. #1
    Prakash is offline Member
    Join Date
    Feb 2013
    Posts
    1
    Rep Power
    0

    Default 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.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,918
    Rep Power
    16

    Default 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.

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,918
    Rep Power
    16

    Default 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.

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

Similar Threads

  1. Replies: 1
    Last Post: 02-28-2010, 03:06 PM
  2. How to split a String using split function
    By Java Tip in forum java.lang
    Replies: 4
    Last Post: 04-17-2009, 08:27 PM
  3. Replies: 1
    Last Post: 02-04-2008, 08:26 PM
  4. How to split a String using split function
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 10-04-2007, 09:32 PM
  5. vars and if sentences in XSL-FO
    By Alan in forum XML
    Replies: 1
    Last Post: 05-31-2007, 02:24 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •