上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 55 下一页
一。start 和end 方法下面是一个对单词"cat"出现在输入字符串中出现次数进行计数的例子:public class RegexMatches{ private static final String REGEX = "\\bcat\\b"; //边界 private stat... Read More
posted @ 2014-05-13 00:25 等风来。。 Views(181) Comments(0) Diggs(0) Edit
1.Realize that nobody cares, and if they do, you shouldn't care that they care. Got a new car? Nobody cares. You'll get some gawkers for a couple of ... Read More
posted @ 2014-05-13 00:15 等风来。。 Views(298) Comments(0) Diggs(0) Edit
在JAVA中,闭包可以通过“接口+内部类”来实现,通过非静态内部类可以访问外部类的全部成员(包括私有成员),因此可以把非静态内部类当成面向对象领域的闭包。 当父类和实现的接口出现同名函数时,你又不想父类的函数被覆盖,闭包可以帮你解决这个问题。例如: 一个Teachable接口和Program... Read More
posted @ 2014-05-11 21:41 等风来。。 Views(457) Comments(0) Diggs(0) Edit
1.attr.xml 2.在构造方法中使用public MyView(Context context,AttributeSet attrs){ super(context,attrs); mPaint = new Paint(... Read More
posted @ 2014-05-08 17:16 等风来。。 Views(238) Comments(0) Diggs(0) Edit
Consider a simple function that adds the first N integers. (e.g.sum(5) = 1 + 2 + 3 + 4 + 5 = 15).Here is a simple Python implementation that uses recu... Read More
posted @ 2014-05-08 11:20 等风来。。 Views(245) Comments(0) Diggs(0) Edit
1.the use of functions in table fields is a key ingredient for some advanceduses of Lua, such as modules and object-oriented programming. Read More
posted @ 2014-05-08 09:57 等风来。。 Views(144) Comments(2) Diggs(0) Edit
递归是静中有动,有去有回。循环是动静如一,有去无回。 Read More
posted @ 2014-05-06 11:47 等风来。。 Views(152) Comments(0) Diggs(0) Edit
屏幕分辨率:1024x600density:1(160)文件夹:values-mdpi-1024x600屏幕分辨率:1024x600density:1.5(240)文件夹:values-hdpi-683x400由1024/1.5600/1.5得到,需要四舍五入。屏幕分辨率:800x480densit... Read More
posted @ 2014-04-30 23:16 等风来。。 Views(196) Comments(0) Diggs(0) Edit
Toast或者Dialog中都有一个Handler的成员变量,所以如果不是在主线程中使用Toast或Dialog,则需要在使用Toast或者Dialog的线程中初始化Looper。Looper.prepare();Toast.makeText(MainActivity.this, "网络出错了", ... Read More
posted @ 2014-04-30 11:22 等风来。。 Views(392) Comments(0) Diggs(0) Edit
public booleanonInterceptTouchEvent(MotionEventev) Implement this method to intercept all touch screen motion events. This allows you to watch events... Read More
posted @ 2014-04-30 00:54 等风来。。 Views(531) Comments(0) Diggs(0) Edit
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 55 下一页
------------------------------------------------------------------------------------------------------------ --------------- 欢迎联系 x.guan.ling@gmail.com--------------- ------------------------------------------------------------------------------------------------------------