Intent 传递数据intent.setClass(getApplicationContext(), DetailsActivity.class);intent.putExtra("id", (String) proList.get(position - 2).getItem("id"));int...
分类:
其他好文 时间:
2015-04-09 16:47:52
阅读次数:
123
Problem Description
035 now faced a tough problem,his english teacher gives him a string,which consists with n lower case letter,he must figure out how many substrings appear at least twice,moreover,s...
分类:
编程语言 时间:
2015-04-09 15:34:55
阅读次数:
213
base 库1. base/StringPiece.hA string like object that points into another piece of memory.Useful for providing an interface that allows clients to easi...
分类:
其他好文 时间:
2015-04-09 15:25:33
阅读次数:
144
做个简单笔录,就当是重温下基础知识。1.先看代码: package com.test;public class Test { public static void main(String[] args) { Son s = new Son(); } } class Pa...
分类:
编程语言 时间:
2015-04-09 15:22:35
阅读次数:
207
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-04-09 15:18:13
阅读次数:
115
System.InvalidOperationException: The ScriptCollection in ScriptName not find在 WMI.SQL.HELPER.CONFIGURATION.SqlDrive.GetScript(String p_ScriptName)在 W...
分类:
数据库 时间:
2015-04-09 15:05:14
阅读次数:
191
从今天开始记录《Thinking in Java》的学习。1.java里内存那些事java里面(几乎)一切都是对象,操纵对象的标识符是对象的一个引用(reference),可以拥有一个引用,但不一定需要有一个对象与它关联,比如:String s;以上只是一个引用,不是对象,但字符串可以用带引号的文本...
分类:
其他好文 时间:
2015-04-09 15:02:03
阅读次数:
78
1 using System; 2 namespace ConsoleApplication2 3 { 4 public class Program 5 { 6 static int[,] martix; 7 8 static string str...
分类:
其他好文 时间:
2015-04-09 14:59:23
阅读次数:
132
下面罗列了各种数据库使用JDBC连接的方式,可以作为一个手册使用。 1、Oracle8/8i/9i/10g/11g数据库(thin模式)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();String url="jdbc:o....
分类:
数据库 时间:
2015-04-09 14:59:20
阅读次数:
194
基本的两种方法
1、使用正则表达式。public String removeDuplicateChars(String str)
{
return str.replaceAll("(?s)(.)(?=.*\\1)", "");
}2、使用遍历。public String removeDuplicateChars(String str)
{
String[] strs = str.s...
分类:
编程语言 时间:
2015-04-09 13:52:57
阅读次数:
149