Java tutorial
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormatSymbols; import java.util.Locale; public class Main { public static char setDecimalSeparator(Locale locale) { DecimalFormatSymbols decimalFormatSymbols = new DecimalFormatSymbols(locale); return decimalFormatSymbols.getDecimalSeparator(); } }