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
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
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
1. logic:empty 该标签是用来判断是否为空的。如果为空,该标签体中嵌入的内容就会被处理。该标签用于以下情况: 1)当Java对象为null时; 2)当String对象为""时; 3)当java.util.Collectio...
分类:
其他好文 时间:
2014-12-15 18:43:41
阅读次数:
244
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
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下开发Android应用时,避免不了编辑xml文件,如layout、string、drawable等等。Android xml体系庞大,很多开发者都是记者标签的关键字,所以在编辑xml文件时自动提示必不可少...
分类:
移动开发 时间:
2014-12-15 18:35:33
阅读次数:
224
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
解析 json一直用gson
突然出现了这个问题
类是这样的 很简单 但每个类都没有关联性
这样写代码太垃圾了。。复用性在哪里。。
所以打算用一个通用的方法 ,网上查 自己写 出现啦这三种方法
public static List getList(String jsonString, Class cls) {
List list = new ArrayList()...
分类:
Web程序 时间:
2014-12-15 17:22:08
阅读次数:
293