码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Java中的final详解以及用途实战
浅析Java中的final关键字   谈到final关键字,想必很多人都不陌生,在使用匿名内部类的时候可能会经常用到final关键字。另外,Java中的String类就是一个final类,那么今天我们就来了解final这个关键字的用法。下面是本文的目录大纲:   一.final关键字的基本用法   二.深入理解final关键字   若有不正之处,请多多谅解并欢迎指正。   请尊重作者劳动...
分类:编程语言   时间:2015-06-02 15:24:55    阅读次数:102
用Go语言写了一个电脑搜索文件的小东西
package main import ( "bytes" "fmt" "os" "os/exec" "path/filepath" "sync" ) type jieguo struct { go_num int Lock sync.Mutex } var searchName string = os.Args[1] var search_result chan str...
分类:编程语言   时间:2015-06-02 15:22:37    阅读次数:119
String类型不属于八种基本类型
1 String str ="hello";2 String str1="he"+new String("llo");3 String str2= new String("hello");4 System.out.println(str...
分类:其他好文   时间:2015-06-02 15:03:54    阅读次数:114
android 通过post方式提交数据的最简便有效的方法
public boolean post(String username, String password) throws Exception {username = URLEncoder.encode(username);// 中文数据需要经过URL编码password = URLEncoder.e...
分类:移动开发   时间:2015-06-02 15:02:43    阅读次数:138
java学习记录---synchronized
1 public class TestSync implements Runnable{ 2 Timer timer = new Timer(); 3 public static void main(String args[]){ 4 TestSync test =...
分类:编程语言   时间:2015-06-02 14:49:34    阅读次数:128
android Volley网络异步通信框架的使用
1、下载volley.jar文件,并放置到android项目下的libs目录下 2、建立请求网络方法 代码如下: 复制即可用public void connectUrl(String url) { StringRequest stringRequest = new StringRequest(url, new Response.Listener...
分类:移动开发   时间:2015-06-02 13:27:25    阅读次数:136
hdu 神、上帝以及老天爷 java
问题: 递推,但是a[i]=(a[i-1]+a[i-2])+(i-1)公式没有推出来。 在递推时,for循环约束值用的输入的m导致数组没有储存数。 在算阶乘时for循环中将i和j用混了,导致没有数输出。 四舍五入取n位:double l=1315.1354 String s=String.format("%.2f", l);syso s; 神、上帝以及老天爷 Time Li...
分类:编程语言   时间:2015-06-02 13:23:42    阅读次数:179
C# Enum,Int,String的互相转换
原文:C# Enum,Int,String的互相转换【C# Enum,Int,String的互相转换】 1、Enum-->String (1)利用Object.ToString()方法:如Colors.Green.ToString()的值是"Green"字符串; (2)利用Enum的静态方法GetN...
分类:编程语言   时间:2015-06-02 13:20:56    阅读次数:132
反射获取对象属性值和字段值
ps:没什么技术含量,直接贴代码public T GetFieldValue(object obj, string name) { Type type = obj.GetType(); System.Reflection.FieldInfo ...
分类:其他好文   时间:2015-06-02 13:19:56    阅读次数:236
javascript、ajax验证
后台:if (!String.IsNullOrEmpty(Request["action"]) && Request["action"] == "ajax") { string username = Request["z_username"]; string permission = Request...
分类:编程语言   时间:2015-06-02 13:19:09    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!