import java.util.Random;public class SiZe { /** * @param args */ public static void main(String[] args) { String[] str_1 = new String[] {"0", "1"...
分类:
其他好文 时间:
2015-03-28 11:31:11
阅读次数:
89
父类:public class Parent { public String name; private String pass; public void say1(AA aa){ System.out.println("parent say1...
分类:
编程语言 时间:
2015-03-28 11:30:00
阅读次数:
166
要实现Android两端对齐的文字排版效果,我们当然可以继承原有的TextView来实现,但一个更简单的方式就是使用WebView,利用HTML样式来实现。首先定义一个String常量,我们可以将它视为一个HTML模板:private static final String WEBVIEW_CONT...
分类:
移动开发 时间:
2015-03-28 11:24:31
阅读次数:
129
检查当前发起请求的设备是手持设备还是电脑端 以便显示不同的视图 public static bool CheckIsMobile(HttpRequestBase req) { bool flag = false; string agent =...
分类:
Web程序 时间:
2015-03-28 11:21:02
阅读次数:
131
public class ExtendsTest { public static void main(String[] args) { A a1 = new A(); A a2 = new B(); B b = new B(); C c ...
分类:
编程语言 时间:
2015-03-28 11:20:33
阅读次数:
143
原理:
查看了下安卓源码,明白了解析过程,只是自己的话就要移植安卓的源码,有人解析成功了,但是我觉得太麻烦。
大概说下安卓的解析过程吧。
public PackageInfo getPackageArchiveInfo(String archiveFilePath, int flags) {
PackageParser packageParser = new Pack...
分类:
移动开发 时间:
2015-03-28 10:11:48
阅读次数:
212
static void Main(string[] args) { while (true) { int x, y; Random r = new Random(); ...
分类:
其他好文 时间:
2015-03-28 10:08:09
阅读次数:
157
static void Main(string[] args) { while (true) { int x, y, m; Random r = new Random(); x = r.Next(0, 3...
分类:
其他好文 时间:
2015-03-28 10:06:55
阅读次数:
127
本来是做一个doucumentevent事件,但是能力有限就做成了一个mouseclicked事件,做成button更好点String str=jTextArea1.getText(); String regex="[\\s\\d\\p{Punct}]+"; String words[]=str.....
分类:
其他好文 时间:
2015-03-28 10:06:37
阅读次数:
148
public static string GetProfileImage(int userId, int width, int height) { return "~/profilepic.ashx?userid=" + userId.ToString() + "&w=" + width.ToS.....
分类:
Web程序 时间:
2015-03-28 10:05:16
阅读次数:
128