最近可能要跳槽,想把Java基础再巩固一下。就先看集合框架吧。
先从构造方法开始: public ArrayList(int initialCapacity) {
super();
if (initialCapacity < 0)
throw new IllegalArgumentException("Illegal Capacity:...
分类:
其他好文 时间:
2015-03-05 14:49:14
阅读次数:
137
1.监听UITextField输入- (void)viewDidLoad{ [super viewDidLoad]; //监听文本输入框的改变 //1.拿到通知中心 NSNotificationCenter *center = [NSNotificationC...
分类:
其他好文 时间:
2015-03-05 10:32:12
阅读次数:
122
直接发源代码? #include?<iostream>
#include?<windows.h>
using?namespace?std;
class?Ref
{
protected:
Ref(){isLoop?=?false;}
virtual?void?update(){cout<<?"super?loop"?<<?endl;}
bool?...
分类:
其他好文 时间:
2015-03-05 09:21:44
阅读次数:
190
和C++相比JAVA没以下内容对不:
一,指针和引用。
二,多继承。
三,没析构函数。无法在构造函数中分配资源,析构函数中释放资源。
四,没有运算重载。
五,C的可变参数不限类型,JAVA的可变参数必须类型相同。
六,联合。
七,java很晚才有枚举。
八,预处理(如宏定义)。
九,默认函数参数。
和JAVA相比,C++没有:
一,没Super,只有this。
二,没f...
分类:
编程语言 时间:
2015-03-05 09:17:41
阅读次数:
141
super的用法:(1)如果需要在子类中调用父类中被覆盖的实例方法,可以用super限定来调用父类中被覆盖的方法。public void callOverridedMethod(){ super.fly(); } (2)(3)(4)(5)
分类:
编程语言 时间:
2015-03-04 22:27:21
阅读次数:
149
private Button btnWrite; private Button btnRead; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceSta...
分类:
其他好文 时间:
2015-03-04 18:52:23
阅读次数:
122
- (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; if ([self.view window] == nil){ self.view = nil;}}
分类:
其他好文 时间:
2015-03-04 18:49:55
阅读次数:
110
1709: [Usaco2007 Oct]Super Paintball超级弹珠Time Limit:5 SecMemory Limit:64 MBSubmit:339Solved:264[Submit][Status]Description奶牛们最近从著名的奶牛玩具制造商Tycow那里,买了一套仿...
分类:
其他好文 时间:
2015-03-03 23:27:10
阅读次数:
201
继承实现一个dialog,并在onCreate里面做处理。 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layo...
分类:
其他好文 时间:
2015-03-03 20:18:05
阅读次数:
125
//将数字转为
#define EMOJI_CODE_TO_SYMBOL(x) ((((0x808080F0 | (x & 0x3F000) >> 4) | (x & 0xFC0)
- (void)viewDidLoad {
[super viewDidLoad];
//单独调用
int sym = EMOJI_CODE_TO_SYMBOL(0x1F600);...
分类:
移动开发 时间:
2015-03-03 18:33:55
阅读次数:
290