码迷,mamicode.com
首页 >  
搜索关键字:new    ( 74660个结果
获取网址链接 得到数据流
public InputStream getConnect(String uri) { //获取网址链接,得到数据流 InputStream is=null; try { URL myUrl=new URL(uri); //获取UR...
分类:其他好文   时间:2014-05-06 00:28:45    阅读次数:339
读取网络数据流
public static void readAsFile(InputStream inStream, File file) throws Exception {//读取网络InputStream FileOutputStream outStream = new FileOutput...
分类:其他好文   时间:2014-05-06 00:28:20    阅读次数:376
设置铃声
1、权限2、代码public void setPhoneMusic() { //设置当前文件存放音乐为手机铃声 Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER); //打开系统...
分类:其他好文   时间:2014-05-06 00:27:49    阅读次数:305
C#操作XML学习(一)
一、简单介绍using System.Xml;//初始化一个xml实例XmlDocument xml=new XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/boo...
分类:其他好文   时间:2014-05-05 23:59:47    阅读次数:347
辞职
4.16 5.16正式离职,跟14个月前的计划延迟了半个月。每次计划都不完美,不过每一步都在我的控制内。 这几天听了很多抱怨,受不了。要不是因为房贷,要不是因为年龄大了,要不是因为 ..... 要么走,要么忍,抱怨没用。 离职前正好加薪,所以在上级看来我这次离职是因为对薪资不满。干脆不解释,说未来规...
分类:其他好文   时间:2014-05-05 23:53:03    阅读次数:403
[c++]程序的内存划分理解
全局和静态数据区:用于存放全局变量和静态变量(全局变量和局部变量)常量数据区:用于存放常量数据代码区:用于存储代码栈:用于局部变量和函数参数堆:程序员申请(程序员控制的部分,new/delete#include #include int gGlobal=100; // global int main...
分类:编程语言   时间:2014-05-05 23:48:12    阅读次数:391
TAR 命令
Create linux tar gz (Gzip)archive (创建压缩文件)tar -czvf myarchive.tgz mydirectory/We use the -t option to create an linux tar archivec– Creates a new .ta....
分类:其他好文   时间:2014-05-05 23:41:27    阅读次数:403
c# 运算符优先级
优先级类别运算符1基本(x) x.y f(x) a[x] x++ x――new typeof sizeof checked unchecked2单目+ - ! ~ ++x ――x (T)x3乘法与除法* / %4加法与减法+ -5移位运算>6关系运算 =7条件等= = ! =8位逻辑与&9位逻辑异或...
分类:其他好文   时间:2014-05-05 23:34:11    阅读次数:359
Java Comparator
1 Arrays.sort(points, new comparator());2 3 public static class comparator implements Comparator {4 public int compare(Point p1, Point p2) {5 ...
分类:编程语言   时间:2014-05-05 23:32:10    阅读次数:444
JavaScript高级程序设计9.pdf
Number是数字值对应的引用类型var numberObject=new Number(10);Number也重写了valueof()、toLocaleString()、和toString()方法,valueOf()方法返回对象表示的基本类型数值,另外两个方法则返回字符串形式的数值,除了继承的为t...
分类:编程语言   时间:2014-05-05 23:11:37    阅读次数:377
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!