Results 1 to 3 of 3
  1. #1
    Godfrey125 is offline Member
    Join Date
    Nov 2010
    Posts
    1
    Rep Power
    0

    Default split the String into character...

    Now i have to write a program, i would like to know how to split the string into character... i have a string like "TFFTFFTTTFFFTFTF"; what code should i use to split it up into something like T F T F T F....

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,963
    Rep Power
    8

    Default

    Check out the String API for useful functions: String (Java Platform SE 6)

  3. #3
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    5

    Default

    If you want a little direction as to Kevin's link, take a look at charAt and substring in particular. But you're probably best to bookmark the API for future reference anyway.

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. String split
    By soccer_kid_6 in forum New To Java
    Replies: 3
    Last Post: 10-29-2010, 07:51 PM
  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
  •