摘要:
1.先安装homebrew 2.再安装Xcode command line tools 3.再安装Python3 brew install python3 py3会被安装到homebrew的库中去。/usr/local/Cellar/python3/Python3.6 阅读全文
摘要:
春天不是读书天 夏日迟迟正好眠 秋有蚊虫冬有雪 收拾书包好过年 阅读全文
摘要:
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); } ... 阅读全文
摘要:
import java.util.*; class StringAddress { private String s; public StringAddress(String s) { this.s = s; } public String toString() { return super.toString() ... 阅读全文
摘要:
用继承自UINavigationController与UITabbarController 创建类,将前者设置为RootViewController,出现了一个问题,navigetionController的title不显示,在controller里面怎么设置都不显示,原因是这个样子的: title 阅读全文
摘要:
1 import java.util.*; 2 class ReversibleArrayList extends ArrayList{ 3 public ReversibleArrayList(Collection c) {super(c);} 4 public Iterable reversed(){ 5 return new Iterable(){... 阅读全文
摘要:
任何实现了Iterable接口的类,都可以用forEach语句,并且Java中大部分的Collection都可以用forEach,除了Map 1 import java.util.*; 2 public class AdapterMethodiom implements Iterable 3 { 4 protected String[] words = ("hello world ... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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 ... 阅读全文
摘要:
迭代器能够将遍历的操作与序列底层的结构分离 阅读全文