Append a single character to a string or char array in java?

CodeLover :

Is it possible to append a single character to the end of array or string in java

for example:

    private static void /*methodName*/ () {            
          String character = "a"
          String otherString = "helen";
          //this is where i need help, i would like to make the otherString become 
         // helena, is there a way to do this?               
      }
Android Killer :
1. String otherString = "helen" + character;

2. otherString +=  character;

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Append string to char array

Append single quote (') to a Special Character String using Java

Append String Array to a single string

Implicit conversion from char to single character string

Using character instead of String for single-character values in StringBuffer append

Is there a difference between string.Split() with a single character vs a one length char array?

Modify a character pointer string array (char * string[])

How to convert character array (char[]) to String array (String[]) without looping through char array and by using predefined methods in java?

String and Character Array in Java

String to char array Java

string to a char array in java

How to replace some character in a string with a single character of type char?

Append String object to character array in Arduino

Which character to append to string in suffix array?

Format String as an hex value and append it in char array

How to append parts of a string in a char array?

using an index number, append that index (a character) to char array

Char array to string and copy character \0

String.lastIndexOf() is there a difference between a char and a string with a single character?

Swift string to array of single character strings

Getting a single character out of a string array in C

What is the data type of a single character in a string as an array?

how to change single char in string array?

Why is char not a single character?

in java, change size of char array with null character

How do I convert a single character String to a char?

How can I clear a single character from a char array?

Is there a way to create a char array of the same character based on how many letters there are in a string in Java?

Convert Character array to string in Java