09 2016 档案

摘要:1.Set 不允许重复元素 无顺序 至多允许一个Null值 HashSet h=new HashSet(); h.add(); h.size(); Iterator it=h.Iterator(); while(h.hasNext()) { Object o=it.Next()} 2.Iterato 阅读全文
posted @ 2016-09-25 21:28 Nicolellu 阅读(182) 评论(0) 推荐(0)
摘要:之前写笔记是不过脑子吗?????自己看都被恶心到了。。。。 以为搜易贼 两分钟写好的东西果然。。 public class Solution { public boolean isPowerOfTwo(int n) { int result=0; while(true) { result=n/2; 阅读全文
posted @ 2016-09-22 20:15 Nicolellu 阅读(149) 评论(0) 推荐(0)
摘要:··brute force--强力暴力 ··IllegalArgumentException--不合法的参数 throw new IllegalArgumentException(" no two num solution"); 返回数组下标。下标就是i,j和,暴力完全能想到啊。。被leetcode 阅读全文
posted @ 2016-09-22 14:44 Nicolellu 阅读(184) 评论(0) 推荐(0)
摘要:将Intent intent01=new Intent();intent01.setClass(MainActivity.this,Calorie.class);startActivity(intent01);改成 Intent intent01=new Intent();intent01.setC 阅读全文
posted @ 2016-09-19 21:13 Nicolellu 阅读(3756) 评论(0) 推荐(0)
摘要:自己做笔记 摘自CSDN public class FragmentA extends Fragment { private View view; @Override public View onCreateView(LayoutInflater inflater, ViewGroup contai 阅读全文
posted @ 2016-09-19 21:08 Nicolellu 阅读(1590) 评论(0) 推荐(0)
摘要:Gradle build finished with 2 error(s) in 1m 5s 962ms就这个错误!!!劳资弄了一晚上加一下午!!!也没整明白!!!!! 最后新建个工程,一步一步谨慎又谨慎,完全按照正经的步骤,终于好了。问题是,代码一样,导入的包一样,到底咋回事wtf!!! 阅读全文
posted @ 2016-09-19 16:14 Nicolellu 阅读(2046) 评论(0) 推荐(0)
摘要:打开 build-gradle (module app) 修改default Config--minSdkVersion 即可 阅读全文
posted @ 2016-09-18 15:39 Nicolellu 阅读(3177) 评论(0) 推荐(0)