码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
递归生成小于某个数的所有集合
package com;public class ConpectOne{ public static void main(String[] args) { ConpectOne co = new ConpectOne(); String J = ""; int y = 0; co...
分类:其他好文   时间:2015-04-15 12:44:36    阅读次数:126
项目开发-iBatis事务源码之SQL执行
SQL执行流程,以插入为例。    SqlMapClientImpl的insert public Object insert(String id, Object param) throws SQLException { return getLocalSqlMapSession().insert(id, param); }   SqlMapSessionImpl的insert...
分类:数据库   时间:2015-04-15 11:23:28    阅读次数:246
Android开发:用Gson处理泛型的方法
在实际开发中,经常用Gson处理接口返回的数据,会因为处理的类型不同,需写不同的方法,也因为返回是object或者是list,也要写不同的方法,这样不符合开发开发的复用原则,本着代码的尽量可复用,我找到了一个可以复用的方法,直接穿入需要解析的数据和返回的object类型,直接出解析结果,一劳永逸,具体的方法如下: protected T getGsonObject(String dat...
分类:移动开发   时间:2015-04-15 11:21:40    阅读次数:185
大数的加法,乘法,全排列实现
打印1到最大的n位数: 这里一个很重要的概念就是n位数,不知道n为多大,那么需要用一个字符来表示一个大数 这里用string来表示大数,为了打印的时候方便,这里需要模拟一个字符的加法操作 另外,之前实现过大数的乘法,异曲同工: http://blog.csdn.net/xietingcandice/article/details/44729323 #include #incl...
分类:其他好文   时间:2015-04-15 11:21:33    阅读次数:138
leetcode Valid Parentheses
代码: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 bool isValid(string s) { 8 map smap; 9 smap.insert(make_pair('(', ')'));10...
分类:其他好文   时间:2015-04-15 11:19:22    阅读次数:159
freemarker 数字,字符的操作
1. 数据类型转换:Javascript代码${xx?string}//字符串${xx?number}//整数${xx?currency}//小数${xx?percent}//百分比2. 截取字符串长度有的时候我们在页面中不需要显示那么长的字符串,比如新闻标题,这样用下面的列子就可以自定义显示的长度...
分类:其他好文   时间:2015-04-15 11:18:37    阅读次数:144
字符串处理函数的自定义函数实现
//strlen同功能的函数stringLength。int stringLength(char *a){ int length=0; while (a[length]!='\0') { length++; } return length;}//strcpyde 同功能函数string...
分类:其他好文   时间:2015-04-15 11:08:30    阅读次数:214
Guava学习
Guava学习笔记目录 Guava 是一个 Google 的基于java1.6的类库集合的扩展项目,包括 collections, caching, primitives support, concurrency libraries, common annotations, string proce...
分类:其他好文   时间:2015-04-15 11:04:12    阅读次数:143
C# List和String互相转换
原文:C# List和String互相转换List转字符串,用逗号隔开 List list = new List();list.Add("a");list.Add("b");list.Add("c");//MessageBox.Show(list.);//LoadModel();string s =...
分类:Windows程序   时间:2015-04-15 11:00:36    阅读次数:149
编译java文件,出错:Failed to establish a connection with the target VM
helloword程序,所有java学习人员人生第一个程序,哎妈,基础太差,出错 1 public class Helloword{ 2 3 public Helloword() { 4 public static void main (String[] args) { 5...
分类:编程语言   时间:2015-04-15 10:58:22    阅读次数:433
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!