码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
【转载】String、StringBuffer与StringBuilder之间区别
文章来源:http://www.cnblogs.com/A_ming/archive/2010/04/13/1711395.html 这两天在看Java编程的书,看到String的时候将之前没有弄懂的都理清了一遍,本来想将String之间的区别记录下来的,在找资料的时候发现这位网友整理的很不错...
分类:其他好文   时间:2015-05-06 21:09:33    阅读次数:115
JS创建 trim() 方法,此方法在IE7、IE8中不存在 需要自定义
function trim(str){ //创建空格对象 var space = new String(" "); /* str = trimLeft(str,space); str = trimRight(str,space); */ return tri...
分类:Web程序   时间:2015-05-06 21:08:25    阅读次数:242
LeetCode 6 -- ZigZag Conversion
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:其他好文   时间:2015-05-06 21:04:50    阅读次数:182
java json的处理
maven依赖 com.alibaba fastjson 1.2.5 读取jsonclass ReadJSON{ public static void main(String[] args) { String jsonStr = "{...
分类:编程语言   时间:2015-05-06 21:03:38    阅读次数:172
实例解析C++虚表
OS:Windows 7关键字:VS2012,C++,VTable,虚表1.创建一个Win32控制台应用程序代码如下:#include "stdafx.h"#include #include class A{public: virtual std::string AName(){return ...
分类:编程语言   时间:2015-05-06 21:02:27    阅读次数:173
Java中泛型接口实现字符相连
通过数组或者集合的形式传入泛型数据,然后用特定字符串隔开。import java.util.ArrayList;import java.util.Collection;import java.util.Iterator;interface ElemmentJoiner{ public String....
分类:编程语言   时间:2015-05-06 19:37:01    阅读次数:205
hdu 2476 (string painter) 字符串刷子
String painterTime Limit: 5000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2068Accepted Submission(s): 908Probl...
分类:其他好文   时间:2015-05-06 19:33:10    阅读次数:202
jqurey 遍历 div内的所有input单选复选按钮并判断是否选中
关于页面前面标签 @{ foreach (var item in vote) { if (!string.IsNullOrE...
分类:其他好文   时间:2015-05-06 19:31:03    阅读次数:231
LeetCode 5 Longest Palindromic Substring(C,C++,Python,Java)
Problem: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. Soluti...
分类:编程语言   时间:2015-05-06 17:58:34    阅读次数:183
uva 11151 Longest Palindrome (最长公共子序列)
uva 11151 Longest PalindromeA palindrome is a string that reads the same from the left as it does from the right. For example, I, GAG and MADAM are palindromes, but ADAM is not. Here, we consider also...
分类:其他好文   时间:2015-05-06 17:56:58    阅读次数:116
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!