Java的泛型是什么呢, 就是类型的参数化,也就是原本该是确定类型的地方换成了变量,把类型的确定时间向后延迟了。
    在之前,学过“重载”的概念,重载是什么呢,举例来说
public class Test{
	// 处理整型数据
	void receive(int i) {
		System.out.println("Received one int data");
		System.ou...
                            
                            
                                分类:
编程语言   时间:
2014-07-22 23:04:34   
                                阅读次数:
324
                             
                    
                        
                            
                            
                                整理自统计之都论坛
方法一   使用strsplit函数
a <- "aggcacggaaaaacgggaataacggaggaggacttggcacggcattacacggagg"
b <- strsplit(as.character(a),"ag")
length(b[[1]]) - 1  ##子字符串"ag"的出现个数
方法二   使用正则式函数
a <- "aggcacgg...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:02:52   
                                阅读次数:
288
                             
                    
                        
                            
                            
                                题目: 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 lo...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 20:07:13   
                                阅读次数:
429
                             
                    
                        
                            
                            
                                Merge k Sorted Lists
 Total Accepted: 9746 Total
 Submissions: 41674My Submissions
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity....
                            
                            
                                分类:
其他好文   时间:
2014-05-01 17:11:32   
                                阅读次数:
234
                             
                    
                        
                            
                            
                                获取字符串长度%x="abcd"#方法一%expr length $x4# 方法二%echo 
${#x}4# 方法三%expr "$x" : ".*"4# expr 的帮助# STRING : REGEXP anchored pattern match 
of REGEXP in STRING查找子串...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 02:54:16   
                                阅读次数:
404
                             
                    
                        
                            
                            
                                冒泡排序
思路:就是每次将最大或最小的元素放到数组的最后,so easy!时间复杂度为(O(n^2))
public class BubbleSort {
	public static void bubbleSort(int[] a) {
		for (int j = 1; j < a.length; j++) {
			for (int i = 0; i < a.length - j; i+...
                            
                            
                                分类:
编程语言   时间:
2014-04-30 22:12:40   
                                阅读次数:
309
                             
                    
                        
                            
                            
                                Background:
It's fairly common for businesses to want to provide some high availability for their SQL Server databases, and one option is to have two SQL Server databases on separate machines with a SQL Server database mirrored....
                            
                            
                                分类:
数据库   时间:
2014-04-30 22:11:38   
                                阅读次数:
520
                             
                    
                        
                            
                            
                                I am honored to be with you today at your commencement from one of the finest universities in the world. I never graduated from college. Truth be told, this is the closest I've ever gotten to a colleg...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:46:22   
                                阅读次数:
337
                             
                    
                        
                            
                            
                                1D people lived in a 1D country. Everything in the country was one-dimensional, and everything was simple and clear: just one axis and two directions — forward and backward. Even a 1D world has proble...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:44:22   
                                阅读次数:
284
                             
                    
                        
                            
                            
                                使用函数操作链表
1:计算链表中结点的个数:定义一个Length_list()函数用于计算链表中结点的个数
函数代码:
//计算链表中结点的个数
void Length_list(PNODE pHead)
{
	PNODE p = pHead->pNext;
	int len = 0;
	while(NULL != p)
	{
		len++;
		p = p->pNext;
...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:28:21   
                                阅读次数:
302