StringBuilder.append(char c) has the following syntax.
public StringBuilder append(char c)
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()); } }
The code above generates the following result.