Location:
Search - StringUtil.java
Search list
Description: java 对string的各种函数,如跟int,byte的数据类型的转换,编码的转换等。
Platform: |
Size: 3627 |
Author: sy |
Hits:
Description: 一个通用些连接数据库的包,其中有三个类: 1.DBConn.java:主要用来连接和关闭数据库.连接数据库的URL,USER,PASSWORD通过配置文件完成com/bcxy/util/systemconfig.properties 2.SqlQuery.java:主要用来执行查询的SQL语句.构造方法: SqlQuery(Connection con, String sql) 将结果存在容器中. 3.SqlUpdate.java:主要用来执行更新的SQL语句.构造方法: SqlUpdate(Connection con, String sql) 另: jar包中有一个util.*,主要是一些常用工具类,下面简单介绍一下: 其中主要包括了 StringUtil.java:对字串的一些操作 DateUtil.java:对时间的一些操作 FileUtil.java:对文件的一些操作 SystemConfig.java:读取配置文件systemconfig.properties ParamUtil.java:页面传参数的操作-a more generic database connectivity package, which has three categories : 1.DBConn.java : mainly used to connect to the database and closure. Connecting to the database URL, USER, PASSWORD through configuration files completed com / bcxy / util / systemconfig.properties 2.SqlQuery. java : mainly used for the implementation of the SQL statement. Construction : SqlQuery (Connection con, String sql) of the results there containers. 3.SqlUpdate.java : mainly used for the implementation of the updated SQL. Construction : SqlUpdate (Connection con, String sql) Another : jar with a packet util .*, mainly some type commonly used tools, described briefly below : including mainly the StringUtil.java : some of the string operation DateUtil.java : right time for operation FileUtil.java : to document
Platform: |
Size: 46599 |
Author: 工程师 |
Hits:
Description: 一个通用些连接数据库的包,其中有三个类: 1.DBConn.java:主要用来连接和关闭数据库.连接数据库的URL,USER,PASSWORD通过配置文件完成com/bcxy/util/systemconfig.properties 2.SqlQuery.java:主要用来执行查询的SQL语句.构造方法: SqlQuery(Connection con, String sql) 将结果存在容器中. 3.SqlUpdate.java:主要用来执行更新的SQL语句.构造方法: SqlUpdate(Connection con, String sql) 另: jar包中有一个util.*,主要是一些常用工具类,下面简单介绍一下: 其中主要包括了 StringUtil.java:对字串的一些操作 DateUtil.java:对时间的一些操作 FileUtil.java:对文件的一些操作 SystemConfig.java:读取配置文件systemconfig.properties ParamUtil.java:页面传参数的操作-a more generic database connectivity package, which has three categories : 1.DBConn.java : mainly used to connect to the database and closure. Connecting to the database URL, USER, PASSWORD through configuration files completed com/bcxy/util/systemconfig.properties 2.SqlQuery. java : mainly used for the implementation of the SQL statement. Construction : SqlQuery (Connection con, String sql) of the results there containers. 3.SqlUpdate.java : mainly used for the implementation of the updated SQL. Construction : SqlUpdate (Connection con, String sql) Another : jar with a packet util .*, mainly some type commonly used tools, described briefly below : including mainly the StringUtil.java : some of the string operation DateUtil.java : right time for operation FileUtil.java : to document
Platform: |
Size: 46080 |
Author: 工程师 |
Hits:
Description: java 对string的各种函数,如跟int,byte的数据类型的转换,编码的转换等。-java on a variety of string functions, such as with int, byte data type conversion, encoding conversion.
Platform: |
Size: 3072 |
Author: sy |
Hits:
Description: 使用java实现id3算法建立决策树,建成决策树后可以测试用例,使用决策树对用例分类。主类是ID3List,花了3天时间写完调试通过的。
ID3算法的实现 包括:建树,测试用例, 选根, 建立叶子节点, 求熵, 求信息期望,求信息增益 等方法以及相应的测试
* 测试:目前全部方法都无异常。makeTree方法有两处逻辑错误待修正 工具类 ListUtil MathUtil ClassUtil StringUtil
* DecisionTree 等工具类 实体类 Person(-->person_id3) VO类 PersonVO
* 针对:一个具体的例子:根据历史数据建立一棵决策树,判定某个具有某些属性的人是否会购买电脑 进步:重构后结构清晰 分工明确 缺陷:打印信息偏少无法反映出计算过程的复杂性。不易得到跟踪消息-ID3 Decision Tree
Platform: |
Size: 13312 |
Author: 李伟 |
Hits:
Description: java字符串完全转换,包括所有字符类型。-java string completely converted, including all types of characters.
Platform: |
Size: 3072 |
Author: zhang |
Hits:
Description: StringUtil.java 主要用于处理Stirng的多种常用方法适用于web开发-Stringutil for web
Platform: |
Size: 7168 |
Author: MDQ |
Hits:
Description: 类名:com.uisftech.hr.util.StringUtil.java。方法如下:
检查一个字符串是否为空(null、“”或全部为空格)
检查一个字符串是否为数字
解析一个文件名字符串,取文件的扩展名
解析一个文件名字符串,取丌含扩展名的文件名
生成一个指定位数的验证码,规则如下:
• 验证码每一位可取:数字0~9,小写字母a、b、c、d、e、f、g、h、i、j、k、m、n、p、q、r、s、t、u、v、w、x、y
• 验证码每一位随机取以上字符
根据指定的ID(数字字符串)生成一个指定长度的新ID,规则如下:
• 如果指定的ID为空,生成的ID全部为“0”
• 如果指定的ID丌为空,生成的ID值取指定ID的值再加1
• 如果生成的ID丌够指定的长度,则左补“0”
检查一个字符串是否符合手机号格式。格式为:
• 长度11位
• 每一位必须为数字
练习一. 创建字符串处理工具类-Class name: com.uisftech.hr.util.StringUtil.java. As follows: check whether a string is empty (null, " " or all spaces) check whether a string parsing a file name string to a number , take the file extension parse a file name string, Take Ji filename extensions containing generate a specified number of verification code, rules are as follows: • the verification code every desirable: the numbers 0 through 9, lowercase letters a, b, c, d, e, f, g, h, i, j, k, m, n, p, q, r, s, t, u, v, w, x, y • an authentication code for each character randomly taken over the specified ID (number string ) to generate a new ID to specify the length of the rule is as follows: • If the specified ID is empty, all the generated ID is " 0" • If the specified ID is empty Ji generated ID value is taken together with the specified ID value 1 • If the generated ID Ji enough specified length, then left up " 0&q
Platform: |
Size: 2048 |
Author: df |
Hits:
Description: Helper for String cla-Helper for String class
Platform: |
Size: 1024 |
Author: Argos |
Hits:
Description: java有关字符串操作的辅助工具类,包括简繁体转换,特殊字符检测等等(Java auxiliary tool classes for string manipulation, including simplified traditional transformation, special character detection, and so on)
Platform: |
Size: 3072 |
Author: 松喜凉 |
Hits: