How do I format a Double with String.format to String with a dot between the integer and decimal part?
String.format
String s = String.format(\"%.2f\", price)
If it works the same as in PHP and C#, you might need to set your locale somehow. Might find something more about that in the Java Internationalization FAQ.