摘要: 目录 在项目中遇到的难点,怎么解决的,具体说说.....要很具体hashmap扩容机制mysql存储引擎特点索引的实现,用的什么数据结构,b+tree的特点concurrenthashmap底层,锁机制...线程除了用synchronized还能用什么,让你自己设计同... 阅读全文
posted @ 2019-03-12 23:23 strawqqhat 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Java中的String,StringBuilder,StringBuffer三者的区别 最近在学习Java的时候,遇到了这样一个问题,就是String,StringBuilder以及StringBuffer这三个类之间有什么区别呢,自己从网上搜索了一些资料,有所了... 阅读全文
posted @ 2019-03-12 19:22 strawqqhat 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 哈希表(hash table)也叫散列表,是一种非常重要的数据结构,应用场景及其丰富,许多缓存技术(比如memcached)的核心其实就是在内存中维护一张大的哈希表,而HashMap的实现原理也常常出现在各类的面试题中,重要性可见一斑。本文会对java集合框架中的对... 阅读全文
posted @ 2019-03-12 18:07 strawqqhat 阅读(138) 评论(0) 推荐(0) 编辑
摘要: split()方法是将指定字符串按某指定的分隔符进行拆分,拆分将会形成一个字符串的数组并返回如:string str = "aa.bb.cc.dd"; string[] strArray = str.Split(‘.‘);所得到的结果strArray的值为 st... 阅读全文
posted @ 2019-03-12 15:47 strawqqhat 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 原链接:https://www.nowcoder.com/discuss/113872目录代码实现提取URL中传的参数和值,保存键值对代码实现N的平方根,不考虑四舍五入取平方根Java的集合有哪些,HashMap原理HashMap是线程安全的吗,怎么让他线程安全Arr... 阅读全文
posted @ 2019-03-12 15:45 strawqqhat 阅读(106) 评论(0) 推荐(0) 编辑
#home h1{ font-size:45px; } body{ background-image: url("放你的背景图链接"); background-position: initial; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; background-origin: initial; background-clip: initial; height:100%; width:100%; } #home{ opacity:0.7; } .wall{ position: fixed; top: 0; left: 0; bottom: 0; right: 0; } div#midground{ background: url("https://i.postimg.cc/PP5GtGtM/midground.png"); z-index: -1; -webkit-animation: cc 200s linear infinite; -moz-animation: cc 200s linear infinite; -o-animation: cc 200s linear infinite; animation: cc 200s linear infinite; } div#foreground{ background: url("https://i.postimg.cc/z3jZZD1B/foreground.png"); z-index: -2; -webkit-animation: cc 253s linear infinite; -o-animation: cc 253s linear infinite; -moz-animation: cc 253s linear infinite; animation: cc 253s linear infinite; } div#top{ background: url("https://i.postimg.cc/PP5GtGtM/midground.png"); z-index: -4; -webkit-animation: da 200s linear infinite; -o-animation: da 200s linear infinite; animation: da 200s linear infinite; } @-webkit-keyframes cc { from{ background-position: 0 0; transform: translateY(10px); } to{ background-position: 600% 0; } } @-o-keyframes cc { from{ background-position: 0 0; transform: translateY(10px); } to{ background-position: 600% 0; } } @-moz-keyframes cc { from{ background-position: 0 0; transform: translateY(10px); } to{ background-position: 600% 0; } } @keyframes cc { 0%{ background-position: 0 0; } 100%{ background-position: 600% 0; } } @keyframes da { 0%{ background-position: 0 0; } 100%{ background-position: 0 600%; } } @-webkit-keyframes da { 0%{ background-position: 0 0; } 100%{ background-position: 0 600%; } } @-moz-keyframes da { 0%{ background-position: 0 0; } 100%{ background-position: 0 600%; } } @-ms-keyframes da { 0%{ background-position: 0 0; } 100%{ background-position: 0 600%; } }