public class Foo {
public static void main(String[] args) {
String strValue="ABCDEFG";
strValue.substring(3);
strValue.concat("123");
System.out.println("result="...
分类:
其他好文 时间:
2015-07-09 11:19:39
阅读次数:
98
即位于System.Collections命名空间下的集合,如Hashtable,ArrayList,Stack,Queue等.其均提供了线程同步的一个实现集合线程同步的问题public class Demo8{ ArrayList list = new ArrayList(1000000);...
分类:
编程语言 时间:
2015-07-09 11:15:17
阅读次数:
154
SO库为Android版本连接库(*.so文件)作用:以后只要开发提供给我们接口说明,我们就可以直接做接口测试了,不再需要一个个的抓包去分析,降低做接口测试的技术难度一般项目里调用自己的so的方法是:将SO文件直接放到libs/armeabi下,然后代码中System.loadLibrary("xx...
分类:
移动开发 时间:
2015-07-09 11:14:52
阅读次数:
781
今天帮开发解决了一个问题,是关于程序无法完全卸载的程序完全卸载方法:利用adb shell进入系统,进入/data/app或者/data/data,删除跟你安装的apk同样的包名;利用adb pull /data/system/packages.xml命令将packages.xml放到你PC机本地,...
分类:
其他好文 时间:
2015-07-09 10:58:31
阅读次数:
153
命令方式:cat /system/build.prop dalvik.vm.heapgrowthlimit=48mdalvik.vm.heapsize=128m代码方式:Runtime rt=Runtime.getRuntime();long maxMemory=rt.maxMemory();log...
分类:
移动开发 时间:
2015-07-09 10:55:45
阅读次数:
194
Java金字塔
package com.tfj.test;
public class JinZiTa {
public static void main(String[] args){
int num=4;
for(int i=0;i<num;i++){
// 找出空格规律
for(int j=1;j<num-i;j++)
System.out.print(" ");
// ...
分类:
编程语言 时间:
2015-07-09 09:51:50
阅读次数:
132
为了节省时间,只写一些关注的方法好了,剩下的可以MSDN嘛XD首先是声明部分,表示为队列是一个可用于枚举的只读集合 [DebuggerTypeProxy(typeof(QueueDebugView<>))]
[DebuggerDisplay("Count = {Count}")]
public class Queue : IEnumerable,
S...
分类:
其他好文 时间:
2015-07-09 09:48:35
阅读次数:
159
控制器
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace MVC过滤器.Controllers
{
public class HomeController : Controller
{...
分类:
Web程序 时间:
2015-07-09 00:56:19
阅读次数:
128
使用Rezor视图引擎的时候移除apsx视图引擎
Global.asax文件
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;...
分类:
Web程序 时间:
2015-07-09 00:51:57
阅读次数:
149
what?
Provide a unified interface to a set of interfaces in a sub- system.
Facade defines a higher-level interface that makes the subsystem
easier to use. ——GOF
给子系统中的一堆接口提供一个统一,标准的接口——更高层次的接口—...
分类:
其他好文 时间:
2015-07-09 00:50:42
阅读次数:
107