转自CSDN一个博主的文章,感觉很有用,转发收藏一下。 import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ChineseUtill {
private static boolean isChinese(char c) {
Charac...
分类:
编程语言 时间:
2015-04-17 16:04:06
阅读次数:
137
Base On Android 4.2
recovery 和 reboot流程
part 1.
reboot recovery流程。
1,RecoverySystem.java中
private static File RECOVERY_DIR = new File("/cache/recovery");
private static File COMM...
分类:
移动开发 时间:
2015-04-17 14:01:09
阅读次数:
616
1 public class Cat { 2 private static int sid = 0; 3 private String name; 4 int id; 5 Cat(String name) { 6 this.name = name;...
分类:
编程语言 时间:
2015-04-16 23:37:11
阅读次数:
226
import java.nio.ByteOrder;
public class BytesTransUtils {
private String TAG = "BytesTransUtils";
private static BytesTransUtils instance = null;
private BytesTransUtils() {
// Lo...
分类:
移动开发 时间:
2015-04-16 17:45:31
阅读次数:
217
1 public class BitmapUtil { 2 3 private static BitmapFactory.Options opt; 4 /** 5 * 从SD Card中获取图片 6 * 7 */ 8 public ...
分类:
其他好文 时间:
2015-04-16 17:16:00
阅读次数:
147
/// /// Double-Checked Locking implements a thread-safe singleton class/// public sealed class Singleton{ private static Singleton _instance = null; /...
分类:
其他好文 时间:
2015-04-16 12:00:57
阅读次数:
118
class Program { private static void ditu(int[, ,] dt, int i) { for (int j = 0; j < 10; j++) { f...
分类:
其他好文 时间:
2015-04-15 21:04:35
阅读次数:
112
private static string connString = "server=.;database=hotel;uid=aa;pwd=123";//最好从配置文件中取出 public static SqlConnection conn = new SqlConnection(...
分类:
数据库 时间:
2015-04-15 16:49:07
阅读次数:
217
public static class XmlHelper { private static void XmlSerializeInternal(Stream stream, object o, Encoding encoding) { if (o == null) throw new Argume...
1. 编写QQ空间数据类(QQS.java)public class QQS { private static LinkedHashMap qqs = new LinkedHashMap(); static{ qqs.put(10001, "张三"); qqs...
分类:
编程语言 时间:
2015-04-15 12:50:02
阅读次数:
101