src/com/office/tools/Change.java

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.office.tools;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Change {
    public static int strtoint(String source){
    	int num=0;
    	try{
    		num=Integer.parseInt(source);
    	}
    	catch(Exception e){
    		 e.printStackTrace();num=-1;
    	} 
        return num;
    }
    
    public static String inttostr(int source){
    	String strnum="";
    	try{
    		strnum=Integer.toString(source);
    	}
    	catch(Exception e){
    		 e.printStackTrace();strnum="";
    	} 
        return strnum;
    }
    
    public static float strtofloat(String source){
    	float num=0;
    	try{
    		num=Float.parseFloat(source);
    	}
    	catch(Exception e){
    		e.printStackTrace();num=-1;
    	}
        
    	return num;
    }
	
    public static String toChinese(String str){
    	if(str==null)str="";
    	try{
    		str=new String(str.getBytes("ISO-8859-1"),"gbk");
    	}
    	catch(Exception e){e.printStackTrace();return "";}
        return str;
    }
    
    public static String datetostr(Date date){
    	String strtime;
    	SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    	strtime=format.format(date);
    	return strtime;
    }
    
    
    
    public static String check(int length,String INDate){
    	String subDate="";
后面还有 70 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。