package?cn.bupt;
public?class?RiLi?{
??public?static?String[]?tiangan?=?{"庚","辛","壬","癸","甲","乙","丙","丁","戊","己"};//天干
??public?static?String[]?tianganQ?=?{"辛","庚"...
分类:
其他好文 时间:
2015-02-13 18:44:39
阅读次数:
167
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
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
一、元数据
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
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
在搞与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
判断是否数字,考虑多种情况
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