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

    I am trying to concatenate strings in Java. Why isn't this working? public class StackOverflowTest { public static void main (String args []) { int theNumber = 42; System.out.

  2. String concatenation in Java - when to use - Stack Overflow

    Jul 29, 2015 · When should we use + for concatenation of strings, when is StringBuilder preferred and When is it suitable to use concat. I've heard StringBuilder is preferable for concatenation …

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

    Mar 21, 2016 · What is truly the fastest way to concatenate strings in Java? Is there a different answer when one seeks the fastest way to concatenate two strings and when concatenating …

  4. How Java do the string concatenation using - Stack Overflow

    Apr 27, 2010 · I read about the way Java works with += operator, using StringBuilder. Is it the same with a ("a" + "b") operation?

  5. How to concatenate characters in java? - Stack Overflow

    How do you concatenate characters in java? Concatenating strings would only require a + between the strings, but concatenating chars using + will change the value of the char into …

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

    To increase the performance of repeated string concatenation, a Java compiler may use the StringBuffer class or a similar technique to reduce the number of intermediate String objects …

  7. Is it better practice to use String.format over string Concatenation …

    May 29, 2009 · Is there a perceptible difference between using String.format and String concatenation in Java? I tend to use String.format but occasionally will slip and use a …

  8. string - When to use StringBuilder in Java - Stack Overflow

    It is supposed to be generally preferable to use a StringBuilder for string concatenation in Java. Is this always the case? What I mean is this: Is the overhead of creating a StringBuilder object,

  9. What's the fastest way to concatenate two Strings in Java?

    To increase the performance of repeated string concatenation, a Java compiler may use the StringBuffer class or a similar technique to reduce the number of intermediate String objects …

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

    Concatenate chars to form String in java Asked 12 years, 7 months ago Modified 3 years, 10 months ago Viewed 172k times