码迷,mamicode.com
首页 >  
搜索关键字:new    ( 74660个结果
Java基础语法(三)---数组
一、概念同一种类型数据的集合。简单的来说就是一容器,用来装东西的。 使用数组的好处:可以自动给数组中的元素从0开始编号,方便操作这些元素。二、一维数组的格式 格式1:元素类型[ ]数组名= new元素类型[元素个数或数组长度] ; 如:int [] arr = new int [3];也可以写成:i...
分类:编程语言   时间:2015-01-15 17:41:09    阅读次数:198
C# 构造器
/*content:C#构造器,终结器 * new操作符implement(实例化)对象,构造器initialize(初始化)对象 * new操作符返回实例化好的对象(虽然在构造器的生命或实现中没有显式的制定返回类型或使用返回语句) * constructor(构造器)是“运行时”用来初始化对象实例...
分类:Windows程序   时间:2015-01-15 17:40:45    阅读次数:245
Android activity跳转并且回调
假设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
N个数随机相加得出固定值的排列组合
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的使用ProgressDialog 继承自AlertDialog,AlertDialog继承自Dialog,实现DialogInterface接口。ProgressDialog的创建方式有两种,一种是new Dialog ,一种是调用Dialog的静态方法Dialog.s...
分类:其他好文   时间:2015-01-15 17:35:39    阅读次数:177
ajax实例详解
var params = { version:new Date().getTime()//版本标志,为了防止IE参数一样不做数据请求 };$.ajax({ url: "StroeList.do", // 发送请求给一个sevlet data: "now="+params, ...
分类:Web程序   时间:2015-01-15 17:29:28    阅读次数:112
查询指定网段Ping通的IP和主机名
$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
java 最佳单例模式
无需过多说明的单例模式 public class LazySingleton {     private static class LazyLoading {         // static Context context;         private static LazySingleton instance = new LazySingleton() { ...
分类:编程语言   时间:2015-01-15 15:58:51    阅读次数:190
Android 4.4 KitKat, the browser and the Chrome WebView
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
通过 JDOM 方式生成 XML 文档
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!