码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
ugui使用代码动态添加Button.OnClick()事件
usingUnityEngine;usingUnityEngine.UI;usingSystem.Collections;usingUnityEngine.Events;usingSystem.Collections.Generic;publicclassPersonalInformation:MonoBehaviour{voidStart(){List<string>BtnsName=newList<string>();BtnsName.Add("Text11(Clone)");fo..
分类:其他好文   时间:2015-03-18 06:42:00    阅读次数:172
Java 在"GoTo"方法层面的实现
packagecom.zzq;publicclassTestGoTo{/***不建议在工作使用不便于理解*但是能正常运行的*/publicstaticvoidmain(String[]args){f:f("s");}publicstaticintgetObjNumber(){returnobjNumber;}publicstaticvoidf(){System.out.println("11");}publicstaticvoidf(Strings){System.o..
分类:编程语言   时间:2015-03-18 06:37:59    阅读次数:141
Callable和Future
//创建一个线程ExecutorServiceexecutorService=Executors.newSingleThreadExecutor();Future<String>future=executorService.submit(newCallable<String>(){@OverridepublicStringcall()throwsInterruptedException{Thread.sleep(1000);return"success";}});Syste..
分类:其他好文   时间:2015-03-18 06:36:31    阅读次数:115
EF学习总结—开篇
学习EF之前要熟悉以下知识: 1.自动属性(Auto-Implemented Properties) //以前的写法 private string _userName; public string UserName { get { return _userName; } set { _userNam...
分类:其他好文   时间:2015-03-18 01:12:09    阅读次数:139
Struts2的Action(二)
Struts2的Action可以是一个POJO(即简单的javaBean),也实现Action接口,或者继承ActionSupport类。 1.Action接口:public interface Action { public static final String SUCCESS = ...
分类:其他好文   时间:2015-03-18 01:08:50    阅读次数:124
UTF8转换
public static String encodeUrl(String source){ String result = source; try{ result = java.net.URLEncoder.encode(source,"utf-8...
分类:其他好文   时间:2015-03-18 01:06:43    阅读次数:170
Java-从堆栈常量池解析equals()与==
一.基本概念①JAVA中的基本数据类型(简单类型,内置类型): 字节型(byte),短整型(short),整型(int),长整型(long),字符型(char),浮点型(float),双精度型(double),布尔型(boolean);注意都是小写的,没有String类型,String类型不是Ja....
分类:编程语言   时间:2015-03-18 01:01:35    阅读次数:179
使用json-lib解析json数据
1、首先要理解几个概念     json对象,json数组,json字符串     json对象可以用JsonObject表示     json数组可以用JsonArray表示    json字符串就是就是一个String类型的字符串    然后在看下面的代码简单多了   import java.util.ArrayList; import java.util.HashMap; i...
分类:Web程序   时间:2015-03-17 23:50:56    阅读次数:342
Java 常用字符串操作总结
1. String转ASCII码 public static String stringToAscii(String value) { StringBuffer sbu = new StringBuffer(); char[] chars = value.toCha...
分类:编程语言   时间:2015-03-17 23:29:31    阅读次数:184
java循环嵌套练习
一·二重(1)输出结果如下:11 21 2 31 2 3 41 2 3 4 51 2 3 4 5 61 2 3 4 5 6 71 2 3 4 5 6 7 81 2 3 4 5 6 7 8 9public class Test { public static void main(String[]...
分类:编程语言   时间:2015-03-17 23:26:02    阅读次数:233
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!