Results 1 to 4 of 4
  1. #1
    jeff_limsy is offline Member
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Default How to use split?

    ...................................
    Last edited by jeff_limsy; 12-29-2010 at 12:37 PM.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,457
    Blog Entries
    7
    Rep Power
    20

    Default

    The split( ... ) methods use the Pattern class (regular expressions); that class (and the split( ... ) methods) were included in the SE distribution since version 1.4 (see the API documentation). Java version 1.3 and earlier simply didn't have that functionality, you had to implement it yourself. For the use of a StringTokenizer also read the API documentation.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    jeff_limsy is offline Member
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Default

    Hi Thanks for reply. oh i see. Can you show sample of stringtokenizer? I would like to see.

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,457
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by jeff_limsy View Post
    Hi Thanks for reply. oh i see. Can you show sample of stringtokenizer? I would like to see.
    Have you read its API documentation? There's a suitable example in the class documentation section.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Split a String with split()--Help
    By danilson in forum New To Java
    Replies: 7
    Last Post: 11-19-2010, 04:08 PM
  2. Split string help
    By Ben1 in forum New To Java
    Replies: 1
    Last Post: 11-08-2010, 04:28 PM
  3. split problem
    By mac in forum New To Java
    Replies: 4
    Last Post: 01-02-2010, 04:46 AM
  4. 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
  5. How to split a String using split function
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 10-04-2007, 09:32 PM

Posting Permissions

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