码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
android 请求网络异步加载
/** * 封装ProecssDialog对话框 * */ public class LoadDialog extends ProgressDialog { private String title = "进度对话框"; private String message = "加载数据中...."; public LoadDialog(Context context, int theme)...
分类:移动开发   时间:2014-05-18 15:42:07    阅读次数:314
Java学习笔记_19_String类
19.String类: 1>String类的构造方法: · 利用字符串构造一个字符串对象: String str = “HelloWorld”; 2>字符串对象操作: · charAt() :返回的是index+1位置的字符。 · equals和equalsIgnoreCase方法:...
分类:编程语言   时间:2014-05-18 15:30:44    阅读次数:372
【Leetcode】Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all vali...
分类:其他好文   时间:2014-05-18 15:11:17    阅读次数:249
Leetcode 151题 Reverse Words in a String
Leetcode 151题 Reverse Words in a String...
分类:其他好文   时间:2014-05-18 10:51:21    阅读次数:243
python基础教程_学习笔记5:字符串
字符串 基本字符串操作 字符串也是序列,因此序列的基本操作(索引、分片、连接、乘法、长度、求最大值和最小值、成员资格)对字符串同样适用: 索引 >>> 'a_string'[0] 'a' 长度 >>> len('a_string') 8 求最大值 >>> max('a_string') 't' 求最小值 >>> min('a_string') '_' 乘法 >>> ...
分类:编程语言   时间:2014-05-18 10:50:15    阅读次数:325
LeetCode: Substring with Concatenation of All Words [029]
【题目】 You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without any intervening characters. For example, given: S:...
分类:其他好文   时间:2014-05-18 08:31:48    阅读次数:228
hibernate sql查询对象到map中
public List queryBySqlMap(String asql) {           final String sql = asql;           List lst = getHibernateTemplate().executeFind( new  HibernateCallback() {                 public  Object doInHi...
分类:数据库   时间:2014-05-18 08:07:09    阅读次数:378
Java学习笔记_18_字符串、包装类、原始数据类剪得转换
18. 字符串、包装类、原始数据类剪得转换:  各个转换如下:  1>String 转换成Integer:   Integer integer = new Integer(“string”);或   Integer Integer = Integer.valueOf(String);   注:String必须是数字字符串,如:”1232“。  2>Integer 转换成String:...
分类:编程语言   时间:2014-05-18 07:40:29    阅读次数:240
一个坑爹的BUG,不仔细看还真看不出来问题
Queue queue = new LinkedList (); for(int i = 0; i<20; i++) { queue.add("坑爹" + i); } for(int j =0; j<queue.size(); j++) { String str = queue.poll(); System.out.println(j); }嘿嘿 输出的是从1~10;虽然没什么技术含量但是我...
分类:其他好文   时间:2014-05-18 04:20:23    阅读次数:282
LeetCode:Reverse Words in a String
题目: Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Clarification: What constitutes a word? A sequence of non-spa...
分类:其他好文   时间:2014-05-18 04:12:07    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!