随笔分类 -  算法编程

摘要:1 package cn.test; 2 3 /** 4 * 静态方式:把字符串中第一个出现的数字的值返回 5 * 6 */ 7 public class Test { 8 public static int getNum(String str) { 9 if (str == null || str.length() == 0) 10 ... 阅读全文
posted @ 2017-05-01 22:58 李梦晨 阅读(791) 评论(0) 推荐(0)
摘要:1.递归算法 2..for循环 3.while循环 4.do.....while循环 阅读全文
posted @ 2017-04-25 01:00 李梦晨 阅读(20140) 评论(0) 推荐(1)