Java StringBuilder.append(char c)
Syntax
StringBuilder.append(char c) has the following syntax.
public StringBuilder append(char c)
Example
In the following code shows how to use StringBuilder.append(char c) method.
public class Main {
public static void main(String[] argv) {
StringBuilder sb = new StringBuilder();
sb.append('a');
System.out.println(sb.toString());// w ww . j av a2s . c om
}
}
The code above generates the following result.