jbuilder 100例 java源码学习,非常不错,有需要朋友下来
源代码在线查看: list.java
package list; /** * Title: * Description: * Copyright: Copyright (c) 2001 * Company: * @author * @version 1.0 */ import java.io.*; import java.util.*; public class List { String data; List next; String totalData = null; public List(String s) { data = new String(s); next = null; } List add(List list){ next = list; return this; } public String toString(){ totalData = new String(data); if( next != null ) totalData = next.toString() + "\n" + totalData; return totalData; } }