天才壹秒記住『愛♂去÷小?說→網』,為您提供精彩小說閱讀。
请稍后阅读,章节错误
002
003
;
004
;
005
;
006
;
007
;
008
009
lassreportutil{
010
011
017
publicstaticstringformatdate(objectobj,stringformat){
018
if(obj==null)
019
retu““;
020
021
strings=(obj);
022
if(format==null||““(())){
023
format=“yyyy-mm-dd“;
024
}
025
try{
026
simpledateformatdateformat=newsimpledateformat(format);
027
s=(obj);
028
}catch(exceptione){
029
}
030
retus;
031
}
032
033
039
publicstaticstringformatnumber(objectobj,stringformat){
040
if(obj==null)
041
retu““;
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);