Snippets tagged “char-arrays”
1 snippet uses 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.