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