字体:大 中 小
护眼
关灯
上一章
目录
下一章
15、骂战
第(2/3)页
*/
039
publicstaticstringformatnumber(objectobj,stringformat){
040
if(obj==null)
041
return““;
042
043
strings=(obj);
044
if(format==null||““(())){
045
format=“#00“;
046
}
047
try{
048
if(objinstanceofdouble||objinstanceoffloat){
049
if((“%“)){
050
numberformatnumberformat=();
051
s=(obj);
052
}else{
053
decimalformatdecimalformat=newdecimalformat(format);
054
s=(obj);
055
}
056
}else{
057
numberformatnumberformat=();
058
s=(obj);
059
}
060
}catch(exceptione){
061
}
062
returns;
063
}
064
065
/**
066
*计算字符串四则运算表达式
067
*@paramstring
068
*@return
069
*/
070
publicstaticstringco
(本章未完,请翻页)
记住手机版网址:m.biqugecd.cc
『加入书签,方便阅读』
上一章
目录
下一章