2015-11-1616:35:32小写转大写:toUpper();大写转小写:toLower();替换:Replace('X','Y');将字符串转换为字符数组:toCharArray();从X处取出Y个字符:string.Substring(ing x,int y);在X处插入Y:string....
分类:
其他好文 时间:
2015-11-16 17:20:10
阅读次数:
162
java:String calMax = dr.getString("calMax"); calMax =calMax.substring(0,calMax.lastIndexOf(".")+4); mv.addObject("calMax",dr.getString("calMax"));或j.....
分类:
其他好文 时间:
2015-11-16 17:11:18
阅读次数:
111
-- 找出前50最耗CPU的SQL语法SELECT TOP 50 qs.total_worker_time/qs.execution_count as [Avg CPU Time], SUBSTRING(qt.text,qs.statement_start_offset/...
分类:
数据库 时间:
2015-11-14 11:08:47
阅读次数:
376
function weekOfYearDay(time) { var time=time; time = time.substring(0,4)+"-"+time.substring(4,6)+"-"+time.substring(6,8); oToday = new ...
分类:
其他好文 时间:
2015-11-12 21:30:13
阅读次数:
226
第一种:多次使用substring_index()的方法DELIMITER$$DROPPROCEDUREIFEXISTS`array`$$CREATEPROCEDURE`array`()BEGINSET@array_content="wwwmysqlcomhcymysqlblog51ctocom";...
分类:
数据库 时间:
2015-11-11 13:11:39
阅读次数:
740
Longest Common SubstringGiven two strings, find the longest common substring.Return the length of it.ExampleGiven A ="ABCD", B ="CBCE", return2.NoteTh...
分类:
其他好文 时间:
2015-11-11 06:29:29
阅读次数:
187
Palindrome Partitioning IIGiven a strings, cutsinto some substrings such that every substring is a palindrome.Return the minimum cuts needed for a pal...
分类:
其他好文 时间:
2015-11-11 06:21:31
阅读次数:
344
You are given a string,s, and a list of words,words, that are all of the same length. Find all starting indices of substring(s) insthat is a concatena...
分类:
其他好文 时间:
2015-11-09 12:12:52
阅读次数:
182
class Solution(object): def longestPalindrome(self, s): """ :type s: str :rtype: str """ lenStr = len(s) ...
分类:
编程语言 时间:
2015-11-08 22:04:23
阅读次数:
299
原文地址:http://www.cnblogs.com/zhxshseu/p/4947609.html%20转载请注明出处:http://www.cnblogs.com/zhxshseu/p/4947609.html问题描述:Given a string S, find the longest pa...
分类:
其他好文 时间:
2015-11-08 17:47:32
阅读次数:
244