⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tostringkemu.java

📁 用java写的一个简单的在线考试系统
💻 JAVA
字号:
/*
 * toStringkemu.java
 *
 * Created on 2008年6月19日, 下午5:56
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package mypacke;

import java.util.StringTokenizer;

/**
 *
 * @author bzu
 */
public class toStringkemu 
{
    private StringTokenizer toke;
    private String str1[]=new String[3];
    /** Creates a new instance of toStringkemu */
    public toStringkemu()
    {
    }
    public int tokeString(String str)
    {
        toke=new StringTokenizer(str,"/");
        int i=0;
        while (toke.hasMoreTokens())
        {
            str1[i]=toke.nextToken();
            i++;
        }
        int n=Integer.parseInt(str1[1]);   
        return n;
    }
    public String[] getkemu()
    {
        return str1;
    }

}

⌨️ 快捷键说明

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