public class MainActivity extends Activity {
private ImageView operImage;
private PointF point = new PointF();//记录手指的位置
private PointF midPoint = new PointF();//记录手指间的中点的位置
private Matrix matrix...
分类:
移动开发 时间:
2014-05-18 18:44:57
阅读次数:
363
public List queryBySqlMap(String asql) {
final String sql = asql;
List lst = getHibernateTemplate().executeFind( new HibernateCallback() {
public Object doInHi...
分类:
数据库 时间:
2014-05-18 08:07:09
阅读次数:
378
18. 字符串、包装类、原始数据类剪得转换:
各个转换如下:
1>String 转换成Integer:
Integer integer = new Integer(“string”);或
Integer Integer = Integer.valueOf(String);
注:String必须是数字字符串,如:”1232“。
2>Integer 转换成String:...
分类:
编程语言 时间:
2014-05-18 07:40:29
阅读次数:
240
由于我想在页面加载完成后,有几个地方显示当前时间,所以我需要给多个span赋值。
span代码的写法如下: (多个span)
jQuery写法:
$(document).ready(function() { //获取当前时间比如:2014年5月17日(js自带的方法)
var currentDate = new Date().toLocaleDateStri...
分类:
Web程序 时间:
2014-05-18 04:49:05
阅读次数:
322
Queue queue = new LinkedList ();
for(int i = 0; i<20; i++) {
queue.add("坑爹" + i);
}
for(int j =0; j<queue.size(); j++) {
String str = queue.poll();
System.out.println(j);
}嘿嘿 输出的是从1~10;虽然没什么技术含量但是我...
分类:
其他好文 时间:
2014-05-18 04:20:23
阅读次数:
282
DataSet ds = new DataSet();
ds.ReadXml(AppDomain.CurrentDomain.BaseDirectory + "XML\\Mail.xml"); if
(ds.Tables.Count > ...
分类:
Web程序 时间:
2014-05-18 02:19:31
阅读次数:
408
Java中List与Map初始化的一些写法代码如下 复制代码 //初始化List List list
= new ArrayList() { { add("obj1"); add("obj2"); add("objN"); ...
分类:
编程语言 时间:
2014-05-18 01:29:17
阅读次数:
452
- 好莱坞6大发行公司: - Warner Bros(WB): 《哈利·波特》, 黑客帝国, 蝙蝠侠,
- New Line cinema新线(2008):魔戒, 霍比特人, 尖峰时刻, 死神来了, 刀锋战士, 德州电锯杀人狂, 地心历险记, 《忍者神龟》, -
Buena Vista(Disney...
分类:
其他好文 时间:
2014-05-18 00:13:25
阅读次数:
357
流方面:private FileOutputStream writer;writer =
new FileOoutputStream(fileName);使用BufferedOutputStream
对写入FileOutputStream的数据进行缓存//将writer的类型由FileOutputS...
分类:
编程语言 时间:
2014-05-17 23:23:05
阅读次数:
385
package Demo;public class Money{ public static void
main(String args[]) { Money mon = new Money();
System.out.println(mon.change("124")); } /...
分类:
其他好文 时间:
2014-05-17 23:22:10
阅读次数:
412