< img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=433806094867034&ev=PageView&noscript=1" />

Text:

Comment:

Home > Fantasy > My 1979 > Chapter 113

Chapter 113

Words:1660Update:22/06/27 05:17:26

Report

Genius One Second Remember If You Want To Go? Say → net, provide you with wonderful novel reading.





;



;



;



;



;





lassreportutil{





/**



* formatting date



* paramobj date object



* paramformat format string



*return



*/



publicstaticstringformatdate(objectobj,stringformat){



If (obj = = null)



return““;





Strings = (obj);



If (format = = null | | "(")) {



Format = "yyyy-mm-dd";



}



try{



Simpledateformatdateformat = new simpledateformat (format);



S = (obj);



}catch(exceptione){



}



returns;



}





/**



* formatting number



* paramobj number object



* paramformat format string



*return



*/



publicstaticstringformatnumber(objectobj,stringformat){



If (obj = = null)



return““;





Strings = (obj);



If (format = = null | | "(")) {



Format = "# 00";



}



try{



if(objinstanceofdouble||objinstanceoffloat){



if((“%“)){



Numberformatnumberformat = ();



S = (obj);



}else{



Decimalformatnumberformat decimalformat = new decimalformat (format);



S = (obj);



}



}else{



Numberformatnumberformat = ();



S = (obj);



}



}catch(exceptione){



}



returns;



}





/**



* Calculates a string quadruple operation expression



*paramstring



*return



*/



publicstaticstringputestring(stringstring){



Stringregexcheck = "[\\ (\\)\\ d\\ +\\ -\\ */\\] *";//Is this a legal expression?





if(! (regexcheck,string))



returnstring;





Matchermatcher = null



Stringtemp = "";



Intindex = - 1;



Stringregex = "\\ ([\\ d\\\\ +\\ -\\ */] +\\)";//Extracts the parenthesized expression



String = ("\\ s", "");//Removes whitespace



try{



Patternpattern = (regex);



//Iterates over all the parenthesized expressions



while((string)()){



Matcher = (string);



while(()){



Temp = ();



Index = (temp);



String = (0, index);



+putestirngnobracket(temp)



+(index+());



}



}



//Finally calculates the total expression result



String = putestirngnobracket (string);



}catch(numberformatexceptione){



();

Select text and click 'Report' to let us know about any bad translation.