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
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
在实际开发中,经常用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
代码: 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
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 是一个 Google 的基于java1.6的类库集合的扩展项目,包括 collections, caching, primitives support, concurrency libraries, common annotations, string proce...
分类:
其他好文 时间:
2015-04-15 11:04:12
阅读次数:
143
原文:C# List和String互相转换List转字符串,用逗号隔开 List list = new List();list.Add("a");list.Add("b");list.Add("c");//MessageBox.Show(list.);//LoadModel();string s =...
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