android_interview
android_interview copied to clipboard
gitbook地址
现在android开发基本都用kotlin了,希望可以加一点kotlin的知识
图片无法正常显示
应该是受到简书防外链影响
@LRH1993 你好,我之前实在gitbook上看的 并不是在github上看的 有个gitbook的地址 我给弄不见了 感觉看起来像看书那种的 谢谢
如关闭的顺序,还有某些情况下只需关闭最外层处理流即可,不用关闭节点流
int[] a = {50,1,2,8,44,5,632,23,345,3425,173,4,5,63,6,7}; 我在测试快速排序时,使用了这个数组,结果在某个getMiddle()死循环了。应该是哪里出了问题。
Free free to add the plugin as mentioned in #59, [**gitbook-treeview**](https://github.com/aleen42/gitbook-treeview), for generating treeview automatically during building each pages. It is helpful for reading enhancement.
Feel free to add a plugin named [**gitbook-treeview**](https://github.com/aleen42/gitbook-treeview) for reading enhancement?
首先不得不说,网上好多资料是虚假的。。。有些地方还是需要自己验证下,而且这个错误,竟然能搜到好多相关的网页,都是按照这个错误来说明的!!!!这种胡说八道的传播的也太广了吧 。。。 Activity启动模式中的Android 5.0之后跨应用启动Activity,会加入新的Task中错误, 还是同一个任务栈,并且近期任务中也不会显示成两个,还是一个 !!!!
原文是使用reentrantLock和condition来实现多生产,多消费模式,但是再开启多个线程的时候传入的是同一个condition,并不能控制多个线程 ``` public static void main(String[] args) throws InterruptedException { ReentrantLock lock = new ReentrantLock(); Condition newCondition = lock.newCondition(); Product product = new Product(lock,newCondition); Consumer consumer = new Consumer(lock,newCondition); for(int...