2017年3月22日
摘要: package test; public class Recover { public int[] reverse(int[] a) { int[] b = new int[a.length]; int n = a.length - 1; for (int i = 0; i < a.length; i++) { ... 阅读全文
posted @ 2017-03-22 14:38 我是齐欢 阅读(1079) 评论(0) 推荐(0) 编辑
摘要: package test; public class Rmb { private static final char[] data = {'零','壹','贰','叄','肆','伍','陆','柒','捌','玖'}; private static final char[] units = {'元','拾','佰','仟','万','拾', 阅读全文
posted @ 2017-03-22 14:24 我是齐欢 阅读(620) 评论(0) 推荐(0) 编辑
摘要: 刚创建的maven项目,马上pom.xml的第一行就报错这是第一行:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaL 阅读全文
posted @ 2017-03-22 11:38 我是齐欢 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 如果一串字符如"aaaabbc中国1512"要分别统计英文字符的数量,中文字符的数量,和数字字符的数量, 假设字符中没有中文字符、英文字符、数字字符之外的其他特殊字符。 阅读全文
posted @ 2017-03-22 09:26 我是齐欢 阅读(3977) 评论(1) 推荐(0) 编辑
摘要: 一、需要分析 1、输入为一个字符串和字节数,输出为按字节截取的字符串 》按照字节[byte]截取操作字符串,先将String转换成byte类型 2、汉字不可以截半 》汉字截半的话对应字节的ASC码为小于0的数值 二、技术难点 1、知道汉字截半的话对应字节的ASC码为小于0的数值 2、对字符串操作应该 阅读全文
posted @ 2017-03-22 09:17 我是齐欢 阅读(733) 评论(0) 推荐(0) 编辑