上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 原文:https://blog.saymagic.cn/2017/07/01/class-common-question.html类的初始化顺序是怎样的?我们尝试从class文件中找到答案。来看这样的一段代码:public class InitialOrde... 阅读全文
posted @ 2019-01-09 16:23 Sun2Q 阅读(192) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/58976c8bf1e1 阅读全文
posted @ 2019-01-07 00:05 Sun2Q 阅读(186) 评论(0) 推荐(0) 编辑
摘要: log4j搭建日志环境简单非maven项目,只需要引入log4j.jar,在类路径下添加log4j.properties即可简单maven项目,只需要在pom.xml引入dependency,在类路径下添加resources下添加log4j.properti... 阅读全文
posted @ 2019-01-04 11:35 Sun2Q 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 在从mysql导入数据时候,mysql里的日期是格林威治时间,普通格式化不行,这里总结一下格式化格林威治时间的方法:Date date = new Date();System.out.println(date);控制台打印出 Thu Aug 27 18:05... 阅读全文
posted @ 2019-01-01 14:43 Sun2Q 阅读(1803) 评论(0) 推荐(0) 编辑
摘要: WA1 测试案例:192/193通过率。。。。 WA2 122 / 193 个通过测试用例 AC1 阅读全文
posted @ 2019-01-01 08:24 Sun2Q 阅读(138) 评论(0) 推荐(0) 编辑
摘要: https://leetcode-cn.com/problems/sliding-window-maximum/AC1模拟,暴力152msclass Solution {public:vector maxSlidingWindow(vector& nums,... 阅读全文
posted @ 2018-12-28 20:58 Sun2Q 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 学生表: 成绩表: 问题:统计各系各门课程的平均成绩 答案: 结果: 阅读全文
posted @ 2018-12-28 18:31 Sun2Q 阅读(190) 评论(0) 推荐(0) 编辑
摘要: P1996 约瑟夫问题 AC1 数据量少,暴力模拟 12ms AC2 使用循环链表 也是12ms。。。 阅读全文
posted @ 2018-12-28 02:21 Sun2Q 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 背景 别人遇到的问题: C++ 全局变量不明确与 using namespace std 冲突 我遇到的问题与他相似,函数调用冲突 上述代码transform(string1.begin(),string1.end(),temp1.begin(),::tolower);中,tolower前不加::会 阅读全文
posted @ 2018-12-27 10:49 Sun2Q 阅读(557) 评论(0) 推荐(0) 编辑
摘要: 前置知识地址:https://blog.csdn.net/wangfei8348/article/details/51383805重点在后面的引用对比实验(测试出内存地址,我很开心哈哈哈,客观给个好评呗~~~)java对象的声明和初始化java中,Objec... 阅读全文
posted @ 2018-12-26 13:05 Sun2Q 阅读(441) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页