Longest Substring Without Repeating CharactersTotal Accepted:62719Total Submissions:298285My SubmissionsQuestionSolutionGiven a string, find the lengt...
分类:
其他好文 时间:
2015-05-09 20:23:00
阅读次数:
114
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
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
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
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类有两个看起来很类似的静态方法,一个是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
摘自http://blog.csdn.net/woshixuye/article/details/8027089getParameter① 得到的都是String类型的。如http://name.jsp?name=xy中的xy② 获取POST/GET传递的参数值③ 用于客户端重定向,如点击链接或提交...
分类:
其他好文 时间:
2015-05-09 18:48:59
阅读次数:
121
public class testpolymorphism { public static void main(String[] args) { animal a = new cat(); testVoice(a); //testVoice(new...
分类:
编程语言 时间:
2015-05-09 18:48:59
阅读次数:
147