上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
摘要: 1.先安装homebrew 2.再安装Xcode command line tools 3.再安装Python3 brew install python3 py3会被安装到homebrew的库中去。/usr/local/Cellar/python3/Python3.6 阅读全文
posted @ 2017-11-23 12:52 vector11248 阅读(1127) 评论(0) 推荐(0) 编辑
摘要: 春天不是读书天 夏日迟迟正好眠 秋有蚊虫冬有雪 收拾书包好过年 阅读全文
posted @ 2017-11-02 19:31 vector11248 阅读(151) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; class SetType{ int i; public SetType(int n){ this.i = n;} public boolean equals(Object o){ return o instanceof SetType && (this.i == ((SetType)o).i); } ... 阅读全文
posted @ 2017-11-01 10:38 vector11248 阅读(135) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; class StringAddress { private String s; public StringAddress(String s) { this.s = s; } public String toString() { return super.toString() ... 阅读全文
posted @ 2017-10-31 18:53 vector11248 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 用继承自UINavigationController与UITabbarController 创建类,将前者设置为RootViewController,出现了一个问题,navigetionController的title不显示,在controller里面怎么设置都不显示,原因是这个样子的: title 阅读全文
posted @ 2017-10-29 21:19 vector11248 阅读(3402) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.*; 2 class ReversibleArrayList extends ArrayList{ 3 public ReversibleArrayList(Collection c) {super(c);} 4 public Iterable reversed(){ 5 return new Iterable(){... 阅读全文
posted @ 2017-10-27 12:24 vector11248 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 任何实现了Iterable接口的类,都可以用forEach语句,并且Java中大部分的Collection都可以用forEach,除了Map 1 import java.util.*; 2 public class AdapterMethodiom implements Iterable 3 { 4 protected String[] words = ("hello world ... 阅读全文
posted @ 2017-10-27 12:09 vector11248 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.*; 2 3 public class AddingGroups { 4 5 public static void main(String[] args) { 6 7 Random rnd = new Random(10); 8 Map m = new HashMap(); 9 ... 阅读全文
posted @ 2017-10-26 16:44 vector11248 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.*; 2 3 public class AddingGroups { 4 5 public static void main(String[] args) { 6 Stack stack = new Stack(); 7 8 /*不能向stack当中push一个数组 9 ... 阅读全文
posted @ 2017-10-26 12:40 vector11248 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 迭代器能够将遍历的操作与序列底层的结构分离 阅读全文
posted @ 2017-10-26 11:43 vector11248 阅读(1076) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页