2019年4月1日
摘要: /** * 获取两个字符串的最大相同子串。 例:abegad acegab */public class TheSameString { public static void main(String[] args) { String s1 = "abegad"; String s2 = "acega 阅读全文
posted @ 2019-04-01 21:49 小白qqqqq 阅读(309) 评论(0) 推荐(0) 编辑
摘要: /** * 给定一个字符串,统计每个字符出现的次数。 如:abdaewrwqask435a1aasd */public class ReplaceString { static int length; public static void countString(String s) { while 阅读全文
posted @ 2019-04-01 20:55 小白qqqqq 阅读(568) 评论(1) 推荐(0) 编辑