<div id="ad"
style="position:absolute"><a href="http://www.cnblog.com/wayne173"
target="_blank"><img src="http://static.cnblogs.com/ima...
分类:
Web程序 时间:
2014-05-23 06:58:38
阅读次数:
330
Contains methods to standard constants used in
the UI for timeouts, sizes, and
distances.一。几个常用的方法返回初始化滑动的最大速度值和最小速度值,以像素/秒为单位getScaledMinimumFlingVel...
分类:
其他好文 时间:
2014-05-23 06:11:10
阅读次数:
250
1.安装系统:别的没什么说的,就是安的时候把网线拔了,不然到 configure
apt的时候会卡起很久不走的2.配置网络 编辑/etc/network/interface打开/etc/networt/interface
添加下面几句:auto eth0iface inet eth0 static ...
分类:
系统相关 时间:
2014-05-23 06:09:49
阅读次数:
341
class SuperClass{ static{ System.out.println("super
class init!"); } static int superInt = 1; static String superString = "supS...
分类:
编程语言 时间:
2014-05-23 04:35:31
阅读次数:
253
using System;using System.Collections.Generic;using
System.Text;namespace ConsoleApplication3{ class Program { static void
Main(string[] args) { doubl...
分类:
其他好文 时间:
2014-05-23 04:08:51
阅读次数:
427
/* 问题:二分查找法查找元素在数组中出现的脚标。 分析:1.二分查找法的前提:数组必须是有序的。
2.找到了就返回脚标,找不到就返回-1。*/public class briSearch{ public static void main(String []
args){ int [] ar...
分类:
其他好文 时间:
2014-05-23 03:59:06
阅读次数:
217
单例设计模式用来创建唯一的对象,有些时候我们只需要一个对象,如:线程池,缓存,对话框,注册表,日志对象,等等。这就需要单例设计模式来完成。不用多说,直接上代码。public
class TestSingle { private static TestSingle single = null; pri...
分类:
其他好文 时间:
2014-05-23 03:48:01
阅读次数:
235
人是一个非静态类。人有脑子,这是一个用static修饰的属性。
这个属性是针对所有的人,是人的共同特征。而不是某个特点对象所特有的(比如张三有脑子,李四没脑子),因为只要是个人,他都有脑子(虽然卡洛斯·罗德里格兹只有半个脑子,还有些人比较脑残→_→,那也算是有脑子),既然是人类共有的,那么他就不能被实例化。...
分类:
其他好文 时间:
2014-05-21 16:36:18
阅读次数:
195
模板与泛型编程--类模板成员[续2]六、完整的Queue类Queue的完整定义:template class Queue;
template
ostream &operator &);
template class QueueItem
{
friend class Queue;
friend ostream &
operator(ostream &,const Q...
分类:
编程语言 时间:
2014-05-21 14:07:20
阅读次数:
304
public class ArrayUtils{
/**
* 返回数组最大值
*
* @param a
* @return
*/
public static int max(int[] a){
// 返回数组最大值
int x;
int aa[]=new int[a.leng...
分类:
编程语言 时间:
2014-05-21 13:31:26
阅读次数:
373