import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.NumberFormat;
import java.util.Locale;
class Ideone {
symbols.setDecimalSeparator(',');
symbols.setGroupingSeparator('.');
}
public static void main
(String[] args
) { float a = 5;
System.
out.
println(formatter.
format(a
)); }
}
aW1wb3J0IGphdmEudGV4dC5EZWNpbWFsRm9ybWF0OwppbXBvcnQgamF2YS50ZXh0LkRlY2ltYWxGb3JtYXRTeW1ib2xzOwppbXBvcnQgamF2YS50ZXh0Lk51bWJlckZvcm1hdDsKaW1wb3J0IGphdmEudXRpbC5Mb2NhbGU7CgpjbGFzcyBJZGVvbmUgewogICAgcHVibGljIHN0YXRpYyBOdW1iZXJGb3JtYXQgc2V1Rm9ybWF0bygpIHsKICAgICAgICBEZWNpbWFsRm9ybWF0U3ltYm9scyBzeW1ib2xzID0gbmV3IERlY2ltYWxGb3JtYXRTeW1ib2xzKExvY2FsZS5ST09UKTsKICAgICAgICBzeW1ib2xzLnNldERlY2ltYWxTZXBhcmF0b3IoJywnKTsKICAgICAgICBzeW1ib2xzLnNldEdyb3VwaW5nU2VwYXJhdG9yKCcuJyk7CiAgICAgICAgcmV0dXJuIG5ldyBEZWNpbWFsRm9ybWF0KCIjMC4wMCIsIHN5bWJvbHMpOwogICAgfQoKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBOdW1iZXJGb3JtYXQgZm9ybWF0dGVyID0gc2V1Rm9ybWF0bygpOwogICAgICAgIGZsb2F0IGEgPSA1OwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihmb3JtYXR0ZXIuZm9ybWF0KGEpKTsKICAgIH0KfQ==