check_all.jad

来自「公务员管理系统,本系统的使用可以将工作的部分流程使用计算机的办公自动化处理」· JAD 代码 · 共 51 行

JAD
51
字号
// Decompiled by DJ v2.9.9.60 Copyright 2000 Atanas Neshkov  Date: 2003-10-15 16:08:00
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   check_all.java

package com.vstsoft.std;


public class check_all
{

    public check_all()
    {
    }

    public boolean check_Number(String s)
    {
        String s2 = s.trim();
        boolean flag = true;
        for(int j = 0; j < s2.length(); j++)
        {
            String s1 = s2.substring(j, j + 1);
            if(s1.compareTo("0") < 0 || s1.compareTo("9") > 0)
                return false;
        }

        return true;
    }

    public boolean check_Year(String s)
    {
        int j;
        try
        {
            j = Integer.parseInt(s);
        }
        catch(Exception exception)
        {
            return false;
        }
        return j >= 1950 && j <= 2050;
    }

    public boolean check_Length(String s, int j)
    {
        String s1 = s.trim();
        return s.length() <= j && s1.length() >= 1;
    }

    int i;
}

⌨️ 快捷键说明

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