码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
leetcode_3题——Longest Substring Without Repeating Characters(set,哈希表,两个指针)
Longest Substring Without Repeating CharactersTotal Accepted:62719Total Submissions:298285My SubmissionsQuestionSolutionGiven a string, find the lengt...
分类:其他好文   时间:2015-05-09 20:23:00    阅读次数:114
list转数组
List list = new ArrayList(); list.add("a"); list.add("b"); final int size = list.size(); String[] str = (String[])...
分类:编程语言   时间:2015-05-09 20:20:17    阅读次数:120
Multiply Strings
https://leetcode.com/problems/multiply-strings/Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The nu...
分类:其他好文   时间:2015-05-09 20:18:04    阅读次数:129
大数求和
#include #include #include using namespace std; int main() { string A, B; cin>>A>>B; vector vecSum; int lenA = A.length(); int lenB = B.length(); int temp; int carry =0; int indexA = len...
分类:其他好文   时间:2015-05-09 19:06:48    阅读次数:100
Java新手学习笔记---字符串对象的相等
public class testobj_important { public static void main(String[] args) { String a = new String("abc"); String b = new String("abc");...
分类:编程语言   时间:2015-05-09 19:01:16    阅读次数:132
Java新手学习笔记---实例对象默认指针
public class testclass { public static void main(String[] args){ Student stu1 = new Student(); Comp c1 = new Comp(); c1.band="梁河县"; stu1.comp = c1...
分类:编程语言   时间:2015-05-09 18:58:05    阅读次数:137
区分Integer.getInteger和Integer.valueOf使用方法
Integer类有两个看起来很类似的静态方法,一个是Integer.getInteger(String),另外一个是Integer.valueOf(String)。如果只看方法名称的话,很容易将这两个方法的功能区分开来,还是让我们来看看Java文档。 Integer.getInteger(Stri....
分类:其他好文   时间:2015-05-09 18:57:22    阅读次数:118
项目问题解决积累
java.lang.IllegalArgumentException: the bind value at index 1 is null本质上还是由于调用的时候userID给了空值 String query = "select regdate,shousuo,shuzhang,maibo from...
分类:其他好文   时间:2015-05-09 18:49:34    阅读次数:87
J2EE中getParameter与getAttribute以及对应的EL表达式
摘自http://blog.csdn.net/woshixuye/article/details/8027089getParameter① 得到的都是String类型的。如http://name.jsp?name=xy中的xy② 获取POST/GET传递的参数值③ 用于客户端重定向,如点击链接或提交...
分类:其他好文   时间:2015-05-09 18:48:59    阅读次数:121
Java新手学习笔记---多态
public class testpolymorphism { public static void main(String[] args) { animal a = new cat(); testVoice(a); //testVoice(new...
分类:编程语言   时间:2015-05-09 18:48:59    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!