// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.NumberFormat;
import java.util.Locale;

public class SpecialParse {
    public static void main(String[] args) throws Exception {
        String s = "123,45";
        DecimalFormatSymbols sym =  new DecimalFormatSymbols(Locale.US);
        NumberFormat fmt = new DecimalFormat("0,0", sym);
        int iv = (int)(long)(Long)fmt.parse(s);
        System.out.println(iv);
    }
}
