Snippets tagged “concat”
7 snippets use this tag.
- Append a single character to a string or char array in java?Java
To append a single character to a string or char array in Java, you can use the + operator or the concat method for strings, or you can use the Arrays.copyOf method for char arrays.
- How To Add New Elements To A JavaScript ArrayJavaScript
To add new elements you can use the following JavaScript functions: push() unshift(), concat() function or splice(). See examples.
- How to Append an Item to an Array in JavaScriptJavaScript
On this page, you can learn the ways of appending an item or multiple items to an array in JavaScript.
- How to Copy Array Items into Another ArrayJavaScript
Read this JavaScript tutorial and learn several useful methods of copying array items into another array. Get to know which method to choose for your case.
- How to Extend an Existing JavaScript Array with Another Array Without Creating a New ArrayJavaScript
Read this JavaScript tutorial and learn about several useful methods for extending an existing an Array with another array without creating a new array.
- Replace a character at a specific index in a string?Java
To replace a character at a specific index in a string in Java, you can use the substring() method of the java.lang.
- String concatenation: concat() vs "+" operatorJava
In Java, you can use the concat() method of the java.lang.String class or the + operator to concatenate (join) two or more strings.