Code 吟__001
来源:互联网 发布:安卓录屏软件 编辑:程序博客网 时间:2024/05/01 03:05
.........String str=......;String [] arr = str.split("="); /** 对于参数后面没有=号的处理。防止数组越界**选择“捷径”,先要找到捷径的缺点,理解它,接受它,规避它,处理好它。*使用捷径的同时也意味着使用了缺陷,高手可以修补捷径的缺陷使之成为真正的捷径,新手则为系统引进了新的潜藏着的bug。*/ int beg = arr[0].length() + 1; int length = str.length(); beg = beg > length ? length : beg; String subSequence = str.substring(beg, length);
0 0
- Code 吟__001
- code
- code
- code
- code
- Code
- code
- code
- Code
- Code
- CODE
- code
- code
- code
- code
- code
- code
- Code
- swift学习记录(控制语句----循环语句)
- LeetCode(68) Text Justification
- scala的option和some
- iOS真机调试报错 A valid provisioning profile for this executable was not found.
- 匿名类Anonymous Classes
- Code 吟__001
- 笔记:动态获取ListView高度
- GDB调试带参数程序
- 如何使用WireShark抓取数据包?
- 在struts2中使用freemarker添加jsp标签支持
- appium get_attribute 方法
- window.parent和window.opener区别
- 织梦dedecms中html和xml格式的网站地图sitemap制作方法
- yunos系统的成功之路