设计模式是前人将一些类似的问题加以总结,从而衍生出的一系列的解决方案。我们在平时开发的过程中遇到类似的问题直接进行套用就可以了,这样极大的节省了我们的思考时间,所以设计模式还是要好好学习一下。并且很多java常用的开发框架也都是使用了各种各样的设计模式,学习设..
分类:
编程语言 时间:
2014-12-30 11:55:50
阅读次数:
315
1.禁用IPV6netsh interface teredo set state disabled netsh interface 6to4 set state disabled netsh interface isatap set state disabled2.禁用事件跟踪程序单击“开始”,然后...
CLI 即Command Line Interface,也就是"命令行接口",它为Java 程序访问和解析命令行参数提供了一种统一的接口。
apache Commons CLI为用户提供了一个解释命令行的API.
它在解释命令行时主要有三个状态,即:定义、解释和询问交互。
通过使用commons cli则可以很容易的访问参数,而不必去循环String[] args。
这个命令需要模拟...
分类:
Web程序 时间:
2014-12-30 10:08:10
阅读次数:
355
iOS中常用的四种数据持久化方法简介iOS中的数据持久化方式,基本上有以下四种:属性列表、对象归档、SQLite3和Core Data1.属性列表涉及到的主要类:NSUserDefaults,一般 [NSUserDefaults standardUserDefaults]就够用了@interface...
分类:
移动开发 时间:
2014-12-30 09:59:37
阅读次数:
166
#import @interface Person : NSObject- (void)test1;- (void)test2:(NSString *)str;@end#import "Person.h"@implementation Person- (void)test1{ NSLog(@"...
分类:
移动开发 时间:
2014-12-30 00:24:42
阅读次数:
151
JNI(java native interface):即java本地调用C的接口。先看整体运行:下面是过程:#vim test.java 1 public class test{ 2 3 public native static int add(int a, int b); //...
分类:
编程语言 时间:
2014-12-30 00:20:28
阅读次数:
338
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ public interface IPrints { ...
分类:
其他好文 时间:
2014-12-29 22:43:08
阅读次数:
276
1.1.1. 编写远程接口
Ihello.java
package cn.tempus.hessian;
public interface IHello {
public String sayHello(String name);
}
1.1.2. 编写远程接口实现类
...
分类:
编程语言 时间:
2014-12-29 18:28:04
阅读次数:
577
应用开发中的一个常见情景,为了避免简单重复,需要在基类中实现共用代码,着同样有助于后期维护。如果在以往的支持类继承的语言中,比如c++,Java,c#等,这很简单!可是go不支持继承,只能mixin嵌入,且看下面的代码:type ManKind interface{ Say(s string...
分类:
其他好文 时间:
2014-12-29 14:59:22
阅读次数:
159
枚举 枚举是什么? 它就是一个特殊的java类. 类的定义 class 类名{} 接口的定义 interface 接口名{} 枚举的定义 enum 枚举名{} 示例 public enum Demo1{} 也会...
分类:
其他好文 时间:
2014-12-29 13:35:30
阅读次数:
105