PrintfExamples.java Source code

Java tutorial

Introduction

Here is the source code for PrintfExamples.java

Source

import java.util.Locale;

public class PrintfExamples {
    public static void main(String[] args) {
        System.out.printf(Locale.ITALIAN, "value: %f\n", 3.14);
    }

}
/*value: 3,140000*/