Java tutorial
//package com.java2s; import java.math.BigDecimal; public class Main { public static int compareTo(String arg0, String arg1) { BigDecimal b1 = new BigDecimal(arg0); BigDecimal b2 = new BigDecimal(arg1); return b1.compareTo(b2); } }