繁体版 简体版
非凡小说网 > 都市言情 > 我的1979 > 15、骂战

15、骂战(第1页/共2页)

请稍后阅读,章节错误

002

003

004

005

006

007

008

009

publicclassReportUtil{

010

011

/**

012

*格式化日期

013

*amobj日期对象

014

*amformat格式化字符串

015

*urn

016

*/

017

publicstaticStringformatDate(Objectobj,Stringformat){

018

if(obj==null)

019

return““;

020

021

Strings=(obj);

022

if(format==null||““.equals){

023

format=“yyyy-MM-dd“;

024

}

025

try{

026

SimpleDateFormatdateFormat=newSimpleDateFormat(format);

027

s=(obj);

028

}catch(Exceptione){

029

}

030

returns;

031

}

032

033

/**

034

*格式化数字

035

*amobj数字对象

036

*amformat格式化字符串

037

*urn

038

*/

039

publicstaticStringformatNumber(Objectobj,Stringformat){

040

if(obj==null)

041

return““;

042

043

Strings=(obj);

044

if(format==null||““.equals){

045

format=“#.00“;

046

}

047

try{

048

if(objinstanceofDouble||objinstanceofFloat){

049

if((“%“)){

050

NumberFormatnumberFormat=;

051

s=(obj);

您阅读的小说来自:非凡小说网,网址:www.xiaoshuoff.com

『加入书签,方便阅读』(第1页/共2页)