-
Notifications
You must be signed in to change notification settings - Fork 73
Add:完成集合框架及源码分析 #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add:完成集合框架及源码分析 #11
Conversation
java/集合(一)Iterator.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注释
java/集合(一)Iterator.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有个错别字,多说空间
java/集合(一)Iterator.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
食用数组 哈哈
java/集合(六)Map.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
提个建议看了你说了这么多,没有一张图来说明他的结构涨什么样,还有1.7到1.8的区别
因为我之前看的时候踩过坑。谢谢!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.8一个 bucket 里面的元素超过8个会连边转红黑树。数据结构感觉我已经讲清楚了。。。。要去偷图嘛。。。。
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
别着急,今天好好提意见
java/集合(一)Iterator.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MarkDown 语法错误,加个空格
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
集合一 初步审核
java/集合(一)Iterator.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这也是Markdown语法错误
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修正
java/集合(一)Iterator.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AbstractList 里边的 modCount 上文没看到你做一个过渡提到过
java/集合(一)Iterator.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#fail-fast 价格空格
java/集合(一)Iterator.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- CopyOnWriteArrayList,ConcurrentHashMap 替换 ArrayList, HashMap
改为 CopyOnWriteArrayList 、ConcurrentHashMap 替换 ArrayList 、HashMap 是不是比较好 - 这样就不会影响原来的迭代。不过坏处就是浪费内存。
改为 这样就不会影响原来的迭代,不过坏处就是浪费内存。 - 为什么要提到 ConcurrentHashMap 替换 HashMap ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已更正
java/集合(一)Iterator.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里给“迭代器模式” 文章的一个连接,而不是只只让人搜索一下,给个能点击的链接
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
java/集合(一)Iterator.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉没说到具体,原因是modCount(修改的数组次数) 和 expectedModCount(期望修改的数组次数) 不一致会抛出 ConcurrentModificationException 这个错误
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
集合二 初步审核
java/集合(二)Collection.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是不是也要说一下 Collections 和 Arrays 这两个工具类
java/集合(二)Collection.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加个空格
java/集合(二)Collection.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里描述的不严谨吧,集合解决了 只有数组这种类型吗? 还是其中之一
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
java/集合(二)Collection.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是不是可以添加 Collections 和 Arrays 工具类的理解
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,加上了
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
集合三 初步审核完毕
java/集合(三)List.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
图片没有显示出来
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
集合 (七) 初步审核
java/集合(六)Map.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没有出现图片
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LinkedArrayList 毕竟是双向链表,HashMap 中是单链表,两者有区别的,你直接说查找 从O(n)的查找时间就得了。。。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
则执行插入空 kye 的方法 kye--》key
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
集合五 初步审核完毕
java/集合(五)Queue.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
特殊的完全二叉树 ,这里你父节点都小于子节点,也成为最小堆 ,这里你应该表达为堆的操作比较好
java/集合(五)Queue.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你举个医院看病的例子呀 这是动态插入变量的问题出来,比如 在医院病人一直在添加,而且病人分优先级,比如急诊的普通感冒的人就应该先看病,这个例子比较贴切。
java/集合(五)Queue.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PriorityQueue 整体解释下来,感觉有点乱
No description provided.