About 50,500 results
Open links in new tab
  1. How do I concatenate two strings in Java? - Stack Overflow

    Oct 12, 2014 · Now I'll add my suggestions on how to do it effectively. This article is a good place where the author speaks about different way to concatenate the string and also given the time …

  2. java - Most efficient way to concatenate Strings - Stack Overflow

    Mar 21, 2016 · I was under the impression that StringBuffer is the fastest way to concatenate strings, but I saw this Stack Overflow post saying that concat() is the fastest method. I tried the …

  3. java - String concatenation: concat () vs - Stack Overflow

    I wonder why the Java compiler uses StringBuilder even when joining two strings? If String included static methods to concatenate up to four strings, or all the strings in a String[], code …

  4. Concatenate chars to form String in java - Stack Overflow

    If the size of the string is fixed, you might find easier to use an array of chars. If you have to do this a lot, it will be a tiny bit faster too. char[] chars = new char[3]; chars[0] = 'i'; chars[1] = 'c'; …

  5. java - Best way to concatenate List of String objects? - Stack …

    Feb 7, 2009 · I agree that I don't like the OP's way of doing it, but for different reasons. (1) Doing it this way disguises the intent of the code (whereas something like StringUtils.join is perfectly …

  6. concatenating string and numbers Java - Stack Overflow

    "+" : Is the only overloaded operator in Java which will concatenate Number to String. As we have 2 "+" operator here, and x+y falls after the "printing:" + as already taken place, Its considering …

  7. Concatenate auto generated strings in java with a space seperator …

    I have a string array variable which values changes continuously. Random arrays are generated from it. This is what i have: String trans = Utility.GetColumnValue(testdata[k], …

  8. How to concatenate a string with the new 1.8 stream API

    Jun 23, 2016 · Consider renaming to "concatenate a string scalar property on a collection of pojos" (with the new....) Because your question (and the accepted answer) is beyond "a string" …

  9. Java fastest way to concatenate strings, integers and floats

    What is the most performant way to build strings from strings, integers and floats? currently I'm doing this and it uses a lot of cpu time. String frame = this.frameTime + ":" + this.player.ve...

  10. Combine multiple strings into one string in Java - Stack Overflow

    I have a set of Strings that I want to combine into one String with all sentences separated with a coma (",") like in a .csv file. Here is my code: String dataContainer; for (String temp...

Refresh