IT人习惯把具体的事物加工成的形状一致的类,正是这样的一致,加上合适的规范,才能彰显对象筋道的牙感和bean清香的味道。Spring比谁都清楚OO的奥妙,让组件之间的依赖关系由容器在运行时期决定,称作依赖注入(Dependency Injection)。...
分类:
编程语言 时间:
2014-06-19 11:03:35
阅读次数:
402
直接上菜
/*接口类*/
public interface MsgListener{
public void afterMsgRecived(String msgData);
}
/*工具类*/
public class Tools{
public static void getMsgData(String reciver,MsgListener listener){
reciver+...
分类:
编程语言 时间:
2014-06-19 10:57:26
阅读次数:
295
题目
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
方法
题目中是找出所有的字符串由相同的字符组成,只是顺序不同。
public List anagrams(St...
分类:
其他好文 时间:
2014-06-19 10:46:45
阅读次数:
207
一、RootViewController:
#import "RootViewController.h"
#import "SecondViewController.h"
@interface RootViewController ()
{
UILabel *_myLabel;
}
@end
@implementation RootViewController
- (id)in...
分类:
其他好文 时间:
2014-06-19 10:24:12
阅读次数:
283
创建一个BOOK对象,对其属性进行声明 定义。
@property 属性声明 定义了对属性的赋值
-(void) dealloc 方法在对象销毁的时候进行调用;
#import
@interface Book : NSObject
@property (nonatomic,assign) int price;
@end
#import "Book.h"
@imp...
分类:
其他好文 时间:
2014-06-16 12:05:04
阅读次数:
271
作为开发者,掌握开发环境下的调试技巧十分有必要。去年就想把关于Eclipse断点调试总结下了,因为对时间的掌控程度仍需极大提高,结果拖到今年才写了此篇博文。关于java调试技术还有非常多,如Java Debug Interface等,根据详细项目的须要,还有非常多值得去研究和学习的。该博文仅就E.....
分类:
系统相关 时间:
2014-06-15 23:07:44
阅读次数:
328
H:/1007/01_多线程_大任务_MainViewController.m// MainViewController.m
// 多线程-01.大任务
// Created by apple on 13-10-7.
#import "MainViewController.h"
@interface MainViewController ()
@property (weak, nonatom...
分类:
移动开发 时间:
2014-06-15 20:14:40
阅读次数:
250
??
更换oracle 集群网卡(Changing a Network Interface)
如果换网卡前后 网卡名,ip,网关,子网掩码都不变的话,集群层面不许要做额外的操作!
一下操作为更换网卡后使用新的网卡名
1、确保所有集群节点都是active 的
olsnodes -s
[grid@vmrac1 ~]$ olsnodes -s
vmrac1 Active
vmr...
分类:
数据库 时间:
2014-06-15 09:55:03
阅读次数:
291
一、为什么需要继承
使用继承一方面继承了父类的特性,另一方便解决了重复代码维护问题。
二、继承之语法
1、 @interface 子类名:父类名
2、 OC只支持单继承,不支持继承多个父类。
3、 重构——移植和优...
分类:
其他好文 时间:
2014-06-13 20:52:16
阅读次数:
526
H:/1021/00_block回调.h/*
通过block回调
定义block代码块,目的是解析完成之后调用
返回值是 void
参数是 数组,里面的每个成员是一个NSString*/
typedef void(^WeatherFinishedBlock)(NSArray *dataList);
@interface WeatherXMLPaser : NSObject
// 解析器...
分类:
移动开发 时间:
2014-06-13 20:37:58
阅读次数:
331