码迷,mamicode.com
首页 >  
搜索关键字:resource is out of s    ( 42511个结果
冒泡排序
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
SpringAop之注解
使用注解进行简化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
【Leetcode】Combinations
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
Spring 类构造器初始化实例
构造方法类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
关于Map
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
Reverse Nodes in k-Group
题目 Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should rem...
分类:其他好文   时间:2014-06-17 22:15:52    阅读次数:299
服务器Out of Memory
之前有次把图片存储在数据库,结果读取时候报错了:Out of Memory..图片本来不应该存储在数据库中的,消耗内存太大,既然已经这样,那就先解决问题,不改存储方式。如果一个应用程序为了提高性能而把数据加载内存中而占用较大的内存,比如超过了默认的最大值128MB,需要加大java虚拟机可使用的最大...
分类:其他好文   时间:2014-06-17 20:07:35    阅读次数:232
xcode自动刷新resource下的文件
修改resource下的lua或者ccbi文件时,xcode并不会察觉到,所以需要手动清理xcode缓存和模拟器缓存,开发效率比较低下。通过以下步骤可以实现自动刷新resource下的文件,且无需手动清理缓存或者clean。适用于xcode-5.0.21.选中xcode项目2.选择build pha...
分类:其他好文   时间:2014-06-17 15:32:33    阅读次数:222
SOLVED: GATT callback fails to register
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
Java编程:实现双色球彩票生成器,生成不重复随机数
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!