Geez, cant figure out how to convert char to String in java

Leros

Lifer
Jul 11, 2004
21,867
7
81
I feel stupid asking this, but Ive been looking for 30 minutes for a solution.

Ive tried many things including:

//add is a char
//add2 is a String

String add2 = add.String();

I got char cannot be dereferenced.

Any idea what code to use?

Thanks for answering such as seemlingly simple question.



 

Leros

Lifer
Jul 11, 2004
21,867
7
81
thanks that did it.

I thought you could only add two strings.

Apparently you can append a char to a string.