一、概念同一种类型数据的集合。简单的来说就是一容器,用来装东西的。 使用数组的好处:可以自动给数组中的元素从0开始编号,方便操作这些元素。二、一维数组的格式 格式1:元素类型[ ]数组名= new元素类型[元素个数或数组长度] ; 如:int [] arr = new int [3];也可以写成:i...
分类:
编程语言 时间:
2015-01-15 17:41:09
阅读次数:
198
/*content:C#构造器,终结器 * new操作符implement(实例化)对象,构造器initialize(初始化)对象 * new操作符返回实例化好的对象(虽然在构造器的生命或实现中没有显式的制定返回类型或使用返回语句) * constructor(构造器)是“运行时”用来初始化对象实例...
假设A页面要跳到B页面,A页面需要获取B页面传回来的参数来确定显示哪个列表。主要代码如下: 在A页面中: Intent intent = new Intent(); intent.setClass(A.this, B.class); startActivityForResult(intent,R.....
分类:
移动开发 时间:
2015-01-15 17:39:26
阅读次数:
188
static double[] iArr = new double[10] { 1,2,3,4,5,6,7,8,9,10 }; static Stack stack = new Stack(); static double tempNum = 0; ...
分类:
其他好文 时间:
2015-01-15 17:39:01
阅读次数:
181
ProgressDialog的使用ProgressDialog 继承自AlertDialog,AlertDialog继承自Dialog,实现DialogInterface接口。ProgressDialog的创建方式有两种,一种是new Dialog ,一种是调用Dialog的静态方法Dialog.s...
分类:
其他好文 时间:
2015-01-15 17:35:39
阅读次数:
177
var params = { version:new Date().getTime()//版本标志,为了防止IE参数一样不做数据请求 };$.ajax({ url: "StroeList.do", // 发送请求给一个sevlet data: "now="+params, ...
分类:
Web程序 时间:
2015-01-15 17:29:28
阅读次数:
112
$path="C:\Users\username\Desktop\"
$ping=New-Objectsystem.net.networkinformation.ping
70..80|%{$ping.send("10.0.9.$_")|selectaddress,status}|out-file-filepath"$pathping.txt"
$IP=Get-Content"$pathping.txt"|Where-Object{$_-match"Success"}
$IPS=-split$IP|Where..
分类:
其他好文 时间:
2015-01-15 16:19:04
阅读次数:
148
无需过多说明的单例模式
public class LazySingleton {
private static class LazyLoading {
// static Context context;
private static LazySingleton instance = new LazySingleton() {
...
分类:
编程语言 时间:
2015-01-15 15:58:51
阅读次数:
190
Having V8 as the JavaScript engine for the new web view, the JavaScript performance if much better, besides general performance on CSS thanks to hardw...
分类:
移动开发 时间:
2015-01-15 15:58:06
阅读次数:
172
1.引入jdom jar包2.代码 Element ele = new Element("tree"); ele.setAttribute("id","0"); Document document = new Document(ele); ...
分类:
其他好文 时间:
2015-01-15 15:48:33
阅读次数:
133