public abstract class AbstractParent { public AbstractParent() { System.out.println("Hello,parent"); } protected void earnMoney() { prepare(); doJob()
分类:
其他好文 时间:
2016-02-19 12:32:57
阅读次数:
109
The definition of integer average is the highest smaller integer if average is floating point number. Also the condition if that they can not use any
分类:
其他好文 时间:
2016-02-16 13:21:15
阅读次数:
173
一、播放手机本地音乐1.创建MediaPlay对象MeiaPlayerplayer;
player=newMediaPlayer();2.重置player对象player.reset();3.设置资源准备,启动player.setDataSource("sdcard/a1.mp3");
player.prepare();
player.start();4.设置暂停player.pause();5.再次调用start时可以继续播..
分类:
移动开发 时间:
2016-02-15 10:45:32
阅读次数:
308
1.下载前段框架并放入项目中去. 2.在js中调用 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>ECharts</title> </head> <body> <!--Step:1 Prepare a do
分类:
其他好文 时间:
2016-02-06 01:38:42
阅读次数:
264
Pipe Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 9932 Accepted: 3045 Description The GX Light Pipeline Company started to prepare bent
分类:
其他好文 时间:
2016-02-04 11:29:16
阅读次数:
146
题目是遇到偶数/2,遇到奇数 *3 + 1的题目,然后找一个range内所有数字的max cycle length。对于一个数字,比如说44,按照题目的公式不停计算,过程是 44, 22, 11, 8, 9 ,1(瞎起的),从44到1的这个sequence的长度,叫做cycle length。然后题
分类:
其他好文 时间:
2016-02-04 06:42:50
阅读次数:
196
首先是如何sort一个只有0和1的数组,要求inplace. follow up是告诉一个range,如何在O(N)时间内sort好 两个pointer可解 1 package Sorting; 2 import java.util.*; 3 4 public class InplaceSortin
分类:
其他好文 时间:
2016-02-04 01:53:27
阅读次数:
331
部分安卓手机在使用融云打包正式版后,发送图片不显示缩略图,解决方法如下:1. 发送本地图片,rong.sendImageMessage的prepare,此时使用本地默认图片2. 发送中,显示图片发送百分比,利用监听3. 发送成功后,rong.getHistoryMessages 获取历史记录,参数:...
分类:
其他好文 时间:
2016-01-27 12:36:33
阅读次数:
599
网上找了好久,大部分的解决办法是:在Toast前面和后面分别加Looper.prepare();与Looper.loop(); ,但是这种方法的不足之处是代码运行到此处时就不往下运行了,格式及用法如下: Looper.prepare(); ToastUtils.showToast(ge...
分类:
编程语言 时间:
2016-01-22 21:41:28
阅读次数:
153
1.prepare front-end code, meta content-type cannot be ignored! as to the xhr, status should be 3 2.back-end, remember to to call tw...
分类:
Web程序 时间:
2016-01-21 23:36:34
阅读次数:
164