import java.util.Formatter;
public class MainClass{
public static void main(String[] argv){
StringBuilder sb = new StringBuilder();
Formatter f = new Formatter(sb);
char b = 'f';
f.format("The value is %c, so there.", b);
System.out.println(sb);
}
}
The value is f, so there.