tools.java

来自「题库管理系统,用最新的jsp技术开发的,里面有一些比较好的方法,希望与大家共享」· Java 代码 · 共 36 行

JAVA
36
字号
/*
 * Tools.java
 *
 * Created on 2006年10月24日, 下午1:02
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package TiKuMS;

/**
 *
 * @author hp
 */
public class Tools {
    public static String toChinese(String strvalue)
    {
        try{
            if(strvalue==null)
            return null;
            else
            {
                strvalue = new String(strvalue.getBytes("ISO8859_1"), "GBK");
                return strvalue;
            }
        }catch(Exception e){
            return null;
        }
    }
    /** Creates a new instance of Tools */
    public Tools() {
    }
    
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?