码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
json字符串转化为list泛型
json字符串格式如下:String jsonStr = "{\"data\":[{\"id\":\"001\",\"name\":\"evan\",\"age\":\"18\"},null,{\"id\":\"002\",\"name\":\"zl\",\"age\":\"20\"}]}"; 具体解析源码如下:public class JsonConvertDemo { public sta...
分类:Web程序   时间:2015-04-07 15:39:37    阅读次数:464
读写注册表
#include #include #include #include "winsock.h" #include #include #include using std::cout;using std::string;using std::iostream; using std::endl;using std::ios;using std::fstream; usin...
分类:其他好文   时间:2015-04-07 15:37:33    阅读次数:155
微信点击弹框
if (eventType.equalsIgnoreCase(MessageUtil.EVENT_TYPE_CLICK)) { // 事件KEY值,与创建自定义菜单时指定的KEY值对应 String eventKey = r...
分类:微信   时间:2015-04-07 15:33:15    阅读次数:301
实现二进制数相加
import java.util.Scanner;public class Solution{ public static void main(String args[]){ Solution solution = new Solution(); System.out.print("plea...
分类:其他好文   时间:2015-04-07 15:31:11    阅读次数:107
ios 汉字字符串数组拼音排序
ios没有提供简单的汉字拼音排序方法,在网上看到了oc方法,这里写以下对应的swift方法 var stringCompareBlock: (String,String)->Bool = { (str1:String, str2:String) -> Bool in var nsStr...
分类:移动开发   时间:2015-04-07 15:25:06    阅读次数:172
C# Excel 操作
将Excel 文件导入到dataGridView中 1 /// Excel数据导入DataGridView 2 public void EcxelToDataGridView(string filePath, DataGridView dgv) 3 { 4 ...
分类:Windows程序   时间:2015-04-07 15:18:01    阅读次数:334
C# 遍历XML文件,添加,更新,删除节点
一,将XML文件添加到text文本中:方法1,最简单方式 1 private void ReadFile() 2 3 { 4 5 string path = Application.StartupPath + @"/bookstore.xml"; 6 7 ...
分类:Windows程序   时间:2015-04-07 15:16:58    阅读次数:238
Log控制台打印设置
android Log.isLoggable方法的使用android 动态控制logcat日志开关,通过Log.isLoggable(TAG,level)方法动态控制,1.添加日志的时候加入判断, String TAG="Volley"; boolean isDbug=Log.isLoggabl.....
分类:其他好文   时间:2015-04-07 15:14:53    阅读次数:122
Struts中结果类型result解析
每个 action 方法都将返回一个 String 类型的值, Struts 将根据这个值来决定响应什么结果.每个 action 声明都必须包含有数量足够多的 result 元素, 每个 result 元素分别对应着 action 方法的一个返回值.result 元素可以有下面两个属性name: 结...
分类:其他好文   时间:2015-04-07 15:07:27    阅读次数:98
Asp.net NVelocity 模版引擎
NVelocity.dll是Java中常用的一个模版,下面是常用的模版引擎1,返回string类型的html代码 1 public string rtnStr(string username, string password) 2 { 3 st...
分类:Web程序   时间:2015-04-07 15:06:23    阅读次数:117
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!