摘要:
1 public class ReverseSentence { 2 public static void main(char[] args) { 3 String str = "hello maxwiter!"; 4 char[] c = str.toCharArray(); 5 LinkStack<Character> stackWord = new LinkStack<Character>(); 6 LinkStack<Character> stackSen = new LinkStack<Character>()... 阅读全文
posted @ 2012-09-02 21:49
bird_z
阅读(146)
评论(0)
推荐(0)
摘要:
1 import java.util.HashMap; 2 3 public class hash { 4 public static void main(String[] args) { 5 6 String string = "HTTP/1.1 200 OK\r\n" 7 + "Date: Sat, 01 Sep 2012 17:22:44 GMT\r\n" 8 + "Server: Apache/2.2.22 (Ubuntu)\r\n" 9 + "Last-Mod... 阅读全文
posted @ 2012-09-02 21:48
bird_z
阅读(112)
评论(0)
推荐(0)
摘要:
1 public class Sort { 2 3 public static void merge(int[] src1, int start1, int len1, int[] src2, 4 int start2, int len2, int[] dest, int start) { 5 int i = start1, j = start2, k = 0; 6 int[] tmp = new int[len1 + len2]; 7 8 while (i < start1 + len1 &... 阅读全文
posted @ 2012-09-02 21:45
bird_z
阅读(172)
评论(0)
推荐(0)
摘要:
LINK(带头结点和不带头结点)功能:实现插入、删除、反转(三种思想)class LinkNode<Type> { Type data; LinkNode<Type> next; public LinkNode() { next = null; } public LinkNode(Type data) { this.data = data; next = null; }}class LinkList<Type> { private LinkNode<Type> first = null; public LinkList() { } public 阅读全文
posted @ 2012-09-02 21:43
bird_z
阅读(189)
评论(0)
推荐(0)
浙公网安备 33010602011771号