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