http://www.w3.org/TR/2014/WD-css-flexbox-1-20140325/1IntroductionCCS2.1中规定了四种布局模式:block layout, designed for laying out documentsinline layout, design...
分类:
其他好文 时间:
2014-06-18 15:33:32
阅读次数:
308
package foo;public class Main { public static void bubbleSort(int[] a, int len) { int in, out; for (out = len - 1; out > 0; --out) { ...
分类:
其他好文 时间:
2014-06-18 14:18:37
阅读次数:
158
使用注解进行简化aop的配置
切点是run方法
Car.java
package com.lubby.bean;
import org.springframework.stereotype.Component;
@Component("car")
public class Car {
public void run(){
System.out.println("Car i...
分类:
编程语言 时间:
2014-06-18 12:17:12
阅读次数:
269
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]...
分类:
其他好文 时间:
2014-06-18 11:41:52
阅读次数:
156
构造方法类Bean1
package com.hao947.bean;
public class Bean1 {
public Bean1() {
System.out.println("bean1...构造方法");
}
public void show(){
System.out.println("bean1...方法");
}
}
配置文件applicationCont...
分类:
编程语言 时间:
2014-06-17 23:12:43
阅读次数:
402
Person p=new Person("黄雄");
Map map=new HashMap();
map.put("p", p);
p.setName("黄熊熊");
Person p1=(Person)map.get("p");
System.out.println(p1.getName());
输出的是黄熊熊,因为map里面存的是引用!p.setName("黄熊熊...
分类:
其他好文 时间:
2014-06-17 22:55:10
阅读次数:
229
之前有次把图片存储在数据库,结果读取时候报错了:Out of Memory..图片本来不应该存储在数据库中的,消耗内存太大,既然已经这样,那就先解决问题,不改存储方式。如果一个应用程序为了提高性能而把数据加载内存中而占用较大的内存,比如超过了默认的最大值128MB,需要加大java虚拟机可使用的最大...
分类:
其他好文 时间:
2014-06-17 20:07:35
阅读次数:
232
I finally figured this problem out. The device I am using is a Samsung Galaxy S4 and the actual problem (thanks Wibble for guidance in your answer, bu...
分类:
其他好文 时间:
2014-06-17 15:21:50
阅读次数:
240
public static void main(String[] args) {System.out.print("红色的号码为:");Set set=new HashSet();while (true) {int i=(int)(Math.random()*33+1);set.add(i);if ...
分类:
编程语言 时间:
2014-06-17 13:35:14
阅读次数:
748
DatePicker 与 TimePicker 控件占用的空间是固定的,没有参数可以更改。如果修改 length 和 width 属性,只会让控件被切割,显示将不完整。很多人说可以使用 scale 属性来放大或缩小android:scaleX="0.8"android:scaleY="0.8"这种方...
分类:
移动开发 时间:
2014-06-17 13:13:50
阅读次数:
1014