码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
干支纪年
package?cn.bupt; public?class?RiLi?{ ??public?static?String[]?tiangan?=?{"庚","辛","壬","癸","甲","乙","丙","丁","戊","己"};//天干 ??public?static?String[]?tianganQ?=?{"辛","庚"...
分类:其他好文   时间:2015-02-13 18:44:39    阅读次数:167
Android学习:AsyncTask方案解决UI线程阻塞
post方式能解决UI线程阻塞问题,但是代码的可读性较差。 一:看程序 {CSDN:CODE:604343} 二:定义AsyncTask private class testTask extends AsyncTask { protected Integer doInBackground(String... arg0) { try { Thread.slee...
分类:移动开发   时间:2015-02-13 18:40:05    阅读次数:201
[LeetCode]Distinct Subsequences
dp经典题题目 Given a string S and a string T, count the number of distinct subsequences of T in S....
分类:其他好文   时间:2015-02-13 18:37:37    阅读次数:167
JDBC:元数据 && 获取插入记录的主键值 && _JDBC_处理 Blob
一、元数据 DatabaseMetaData类 DatabaseMetaData 类中提供了许多方法用于获得数据源的各种信息,通过这些方法可以非常详细的了解数据库的信息: getURL():返回一个String类对象,代表数据库的URL。 getUserName():返回连接当前数据库管理系统的用户名。 isReadOnly():返回一个boolean值,指示数据库是否只允许读操作。...
分类:数据库   时间:2015-02-13 18:35:01    阅读次数:225
在一个循环中从一个列表里删除一个元素
ArrayList list = new ArrayList(Arrays.asList("a", "b", "c", "d"));Iterator iter = list.iterator();while (iter.hasNext()) { String s = iter.next(); if....
分类:其他好文   时间:2015-02-13 18:20:20    阅读次数:204
Letter Combinations of a Phone Number
https://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/Given a digit string, return all possible letter combinations that the number c...
分类:其他好文   时间:2015-02-13 18:20:16    阅读次数:119
java位操作
在搞与c的协议解析的时候,要进行很多的位运算。因为位运算,实际编程中用的不多,这里还是记录一下。c协议过来的数据是16进制的字符串。首先是将16进制的字符串转换为ByteBuffer. public static ByteBuffer string2Buffer(String source) ...
分类:编程语言   时间:2015-02-13 17:57:00    阅读次数:127
连接数据库
1 protected void btnLogin_Click(object sender, EventArgs e) 2 { 3 #region first version 4 string userName = this...
分类:数据库   时间:2015-02-13 17:55:15    阅读次数:270
二叉查找树
#include <iostream> #include <string> using namespace std; typedef struct BiTNode { int data; int flag; BiTNode *lchild,*rchild; } BTNode,BTree; //二叉排序树的查找非递归算法 //在二叉...
分类:其他好文   时间:2015-02-13 16:47:02    阅读次数:129
Valid Number
判断是否数字,考虑多种情况 class Solution{ public: bool isNumber(string s){ int i = 0; while(s[i] == ' ') ++i; while(s[i] == '+' || s[i] == '-') ++i; bool exp = false, space = false, point = fa...
分类:其他好文   时间:2015-02-13 16:38:49    阅读次数:97
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!