摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Delegate{ public delegate void Task(); class Program... 阅读全文
posted @ 2013-09-13 00:37 MrMrCash 阅读(207) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace StringBuilderTest{ class Program { static voi... 阅读全文
posted @ 2013-09-12 01:17 MrMrCash 阅读(964) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Queue{ class Program { public static void Pri... 阅读全文
posted @ 2013-09-12 00:29 MrMrCash 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 调用LIST的Sort的时候会调用IComparer的默认实现,quicksort会调用每个元素的CompareTo的IComparable实现using System;using System.Collections.Generic;using System.Linq;using System.T... 阅读全文
posted @ 2013-09-11 01:23 MrMrCash 阅读(209) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ComparableTest{ class Program { class Employe... 阅读全文
posted @ 2013-09-10 00:52 MrMrCash 阅读(391) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;/* 使用 约束 实现可排序单链表 */namespace UsingConstraints{ class Employee : ... 阅读全文
posted @ 2013-09-06 00:47 MrMrCash 阅读(444) 评论(0) 推荐(0) 编辑
摘要: package ming;import java.awt.BorderLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.InputEvent;impo... 阅读全文
posted @ 2013-08-25 14:47 MrMrCash 阅读(329) 评论(0) 推荐(0) 编辑
摘要: package ming;import java.util.ArrayList;import java.util.Collection;import java.util.Comparator;import java.util.List;import java.util.TreeSet;/* * 按照... 阅读全文
posted @ 2013-08-22 00:50 MrMrCash 阅读(283) 评论(0) 推荐(0) 编辑
摘要: package ming;import java.util.ArrayList;import java.util.Collection;import java.util.List;/* * 返回最后一个被复制的元素 * dest必须是src的父类或者本身 * 作用:集合之间的赋值 * */publi... 阅读全文
posted @ 2013-08-22 00:15 MrMrCash 阅读(287) 评论(0) 推荐(0) 编辑
摘要: package ming;import java.util.ArrayList;import java.util.Collection;import java.util.List;class MyClass{ public MyClass(T t){ System.out.println("t ... 阅读全文
posted @ 2013-08-22 00:02 MrMrCash 阅读(574) 评论(0) 推荐(0) 编辑