/**
* 添加千分位
* @param str
* @return
*/
public static String format(String str)
{
if(!isEmpty(str) && !"-".equals(str))
{
DecimalFormat df = new DecimalFormat("###,###");
try {
str = df.format(Long.parseLong(str));
} catch (Exception e) {
return str;
}
}
return str;
}
网友评论