Top "String-concatenation" questions

String concatenation is the operation of joining two character strings end-to-end.

String.format() vs "+" operator

What should be used for a basic string concatenation operation ? String randomString = "hello " + userName + " how are you" ? or String randomString = …

java string concatenation string-concatenation
String concatenation vs. interpolation in Ruby

I am just starting to learn Ruby (first time programming), and have a basic syntactical question with regards to variables, …

ruby string-concatenation string-interpolation
Efficiently repeat a character/string n times in Scala

I would like to do the following more efficiently: def repeatChar(char:Char, n: Int) = List.fill(n)(char).mkString …

string scala char concatenation string-concatenation
MongoDB concatenate strings from two fields into a third field

How do I concatenate values from two string fields and put it into a third one? I've tried this: db.…

mongodb mongodb-query aggregation-framework string-concatenation mongodb-update
How do I concatenate strings in Entity Framework Query?

How do I concatenate strings in Entity Framework 4 I have a data from a column and I want to save …

sql entity-framework entity-framework-4 aggregate string-concatenation
String builder vs string concatenation

What is the benefit and trade-off of using a string builder over pure string concatenation? new StringBuilder(32).append(str1) .append(" …

java stringbuilder string-concatenation
Why is the php string concatenation operator a dot (.)?

In PHP, the string operator dot (.) is used to concatenate strings. For example: $msg = "Hello there, " . $yourName; The dot operator …

php operators string-concatenation
Is string concatenation in scala as costly as it is in Java?

In Java, it's a common best practice to do string concatenation with StringBuilder due to the poor performance of appending …

scala string-concatenation
SQLite Update Syntax for string concatenation?

I have a table with this data id , name , description 1 , apple , '' 2 , orange , '' I am trying to pass the …

sql sqlite syntax string-concatenation
Ternary operator and string concatenation quirk?

Hi I just want to know why this code yields (at least for me) an incorrect result. Well, probably i'm …

php ternary-operator string-concatenation