Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts

    java joining an array

    eg you can split a String into a String[] with
    String[] arrString = strString.split(strDelimiter);

    but how can i join this array back into a string without looping though every element, isnt there an inverse function of split, which is usually called join? can i just use toString? in which case how do i do a delimiter between the joined strings

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    I found this, but can't seem to find the package to download. [http://industry.ebi.ac.uk/~senger/to...a.lang.String)]

  • #3
    cfc
    cfc is offline
    Regular Coder
    Join Date
    Dec 2004
    Location
    Keswick, Ontario
    Posts
    251
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Antoniohawk
    I found this, but can't seem to find the package to download. [http://industry.ebi.ac.uk/~senger/to...a.lang.String)]
    http://industry.ebi.ac.uk/~senger/tools/

    It should be the first Download button.
    Last edited by cfc; 02-09-2005 at 11:12 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
    •