码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
php开发安卓服务器之 php封装json xml通用app数据通信接口
php文件:test.php 是通用通信类  <?php class Response { const JSON = "json"; /** * 按综合方式输出通信数据 * @param integer $code 状态码 * @param string $message 提示信息 * @param array $data 数据 * @param string $type 数据类...
分类:移动开发   时间:2014-12-15 19:08:43    阅读次数:180
String to Integer (atoi)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:其他好文   时间:2014-12-15 19:07:22    阅读次数:181
位数拼接
public void getArray() { string[] str = new string[] {"1","2","3","4","5" }; List strList = new List(); for (i...
分类:其他好文   时间:2014-12-15 18:51:00    阅读次数:162
Python int与string 的转换
string → int1、10进制的string转化为int int('12') → type(int('12')) 进行验证2、16进制的string转化为int int('12', 16)int → string1、int转化为10进制的string s1 = str(18) prin...
分类:编程语言   时间:2014-12-15 18:47:18    阅读次数:654
struts标签--logic总结
1. logic:empty 该标签是用来判断是否为空的。如果为空,该标签体中嵌入的内容就会被处理。该标签用于以下情况: 1)当Java对象为null时; 2)当String对象为""时; 3)当java.util.Collectio...
分类:其他好文   时间:2014-12-15 18:43:41    阅读次数:244
2 dimension Array; Table
1 package com.java7; 2 3 class TwoD { 4 public static void main(String[] args) { 5 int t, i; 6 int table[][] = new int[3][4]; 7 ...
分类:其他好文   时间:2014-12-15 18:39:16    阅读次数:114
Array; Bubble sort
1 package com.java7; 2 3 class Bubble { 4 public static void main(String[] args) { 5 int nums[] = { 99, -10, 100123, 18, -978, 5623, 463...
分类:其他好文   时间:2014-12-15 18:36:26    阅读次数:157
用Eclipse编辑AndroidXML文件,配置自动提示。
用Eclipse编辑AndroidXML文件,配置自动提示。 - 好代码编程网在Eclipse下开发Android应用时,避免不了编辑xml文件,如layout、string、drawable等等。Android xml体系庞大,很多开发者都是记者标签的关键字,所以在编辑xml文件时自动提示必不可少...
分类:移动开发   时间:2014-12-15 18:35:33    阅读次数:224
正则表达式 判断IP 数字
1、正则表达式 public static bool checkIP(string strIP) { //string regex = @"^(2[0-4]\d | 25[0-5] | [01]?\d?[1-9])\." + ...
分类:其他好文   时间:2014-12-15 18:33:40    阅读次数:185
用fastjson 结局了 gson 泛型 类型 对应的不上的问题。。
解析 json一直用gson 突然出现了这个问题 类是这样的 很简单 但每个类都没有关联性  这样写代码太垃圾了。。复用性在哪里。。 所以打算用一个通用的方法 ,网上查 自己写 出现啦这三种方法 public static List getList(String jsonString, Class cls) { List list = new ArrayList()...
分类:Web程序   时间:2014-12-15 17:22:08    阅读次数:293
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!