算法
EdwardHere
no only the code
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
不用比较实现字符串大小写转换
/** * 不用比较实现字符串大小写转换 * @author 承天 * */public class TranslateString { //判断单个字母是不是大写 private static boolean isUpper(char c){ int acsii=(int)c; return (acsii&32)==0?true:false;原创 2015-02-28 22:43:07 · 659 阅读 · 0 评论 -
顺时针遍历数组
/** * 顺时针遍历数组 * * @author 承天 * */public class ClockwiseArray { final int m = 5; final int n = 5; int arr[][] = new int[m][n]; public ClockwiseArray() { int x = 1; // 初始化数组并打印出来,方便查看结果原创 2015-03-10 13:45:35 · 959 阅读 · 1 评论
分享