// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
public class StrTmpl20 {
    public static void main(String[] args) {
        double v1 = 1.0;
        double v2 = 5.0;
        String s = String.format("%f - %f", v1, v2);
        System.out.println(s);
    }
}
