在网上学习了马士兵老师的设计模式视屏,过程中也有认真的做相应的笔记。在次分享我的一些成果,方便大家的进一步学习。1、接口public interface Moveable { void move();}2、被代理的对象public class Tank implements Moveable { @...
分类:
编程语言 时间:
2015-09-16 23:17:20
阅读次数:
236
1、length() 字符串的长度 例:char chars[]={'a','b'.'c'}; String s=new String(chars); int len=s.length();2、charAt() 截取一个字符 例:char ch; ch="abc".charAt(1); 返回'b'3、getChars() 截取多个字符 void getChars(int s...
分类:
编程语言 时间:
2015-09-16 22:04:12
阅读次数:
224
接这个:http://www.cnblogs.com/guangshan/p/4739716.html扫描代码:package com.guangshan.scanurl;public class MyTest{ public static void main(String[] args) {...
分类:
其他好文 时间:
2015-09-16 21:41:08
阅读次数:
148
一、传统线程技术public static void main(String[] args) { Thread thread = new Thread(){ @Override public void run() { while(true){ ...
分类:
编程语言 时间:
2015-09-16 20:05:56
阅读次数:
231
// 本地通知回调函数,当应用程序在前台时调用- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { NSLog(@"n...
分类:
移动开发 时间:
2015-09-16 19:50:11
阅读次数:
162
/** * 接口方法 */ public void excuteInputDB(SynchServiceConfig synchServiceConfig) throws Exception { try {// if(!""...
分类:
数据库 时间:
2015-09-16 19:45:20
阅读次数:
491
void printTriangle(int32_t layerNum){ if (layerNum < 1){ return; } auto printSpaces = [](int32_t num) { for (int32_t i =...
分类:
其他好文 时间:
2015-09-16 19:41:30
阅读次数:
109
一、异常捕获package com.pb.demo.demo1;public class Demo { public static void main(String[] args) { try { func(); Sys...
分类:
其他好文 时间:
2015-09-16 19:39:51
阅读次数:
208
初始化百度地图:1 private void initViews() {2 4 mMapView = (MapView) findViewById(R.id.bmapView);5 mBaiduMap = mMapView.getMap();6 // ...
分类:
移动开发 时间:
2015-09-16 19:32:53
阅读次数:
186
九大内置对象:1.out对象 out对象是JspWriter类的实例,是向客户端输出内容常用的对象,同时还可以管理应用服务器上的输出缓冲区,总之out对象就是输出流。方法说明:1 void clear() 清除缓冲区的内容2 void clearBuffer() 清除缓冲区的当前内容3 void ....
分类:
Web程序 时间:
2015-09-16 18:07:54
阅读次数:
159