随笔都是学习笔记
随笔仅供参考,为避免笔记中可能出现的错误误导他人,请勿转载。
摘要: 题目: 思路: 代码: public String convert(String s, int numRows) { if(numRows == 1 ){ return s; } StringBuffer[] sb = new StringBuffer[numRows]; for (int i = 阅读全文
posted @ 2022-06-16 16:38 时间完全不够用啊 阅读(61) 评论(0) 推荐(0) 编辑
摘要: for (int i = 0; i < 9; i++) { // 九行 if (i < 5) { // 前五列 for (int j = 0; j < i + 1; j++) { // 根据行数打印列数 System.out.print("*"); } }else { // 后四列 for (int 阅读全文
posted @ 2022-06-16 14:12 时间完全不够用啊 阅读(46) 评论(0) 推荐(0) 编辑