elem.java

来自「集合类」· Java 代码 · 共 31 行

JAVA
31
字号
public class Elem implements Cloneable
{
	private int e;
	private Elem next;
	Elem(){e=0;next=null;}
	Elem(int e){this.e=e;next=null;}
	void setE(int e){this.e=e;}
	public Elem getNext()
	{return next;}
	public void setNext(Elem next)
	{this.next=next;}
	public int getE(){return e;}
	public int getLong()
	{
		Elem t=this;
		int i=0;
		while(t!=null){i++;}
		return i;
	}
	public String toString(){return " "+e;}
/*
	public Object clone() throws CloneNotSupportedException
	{
		Elem c=(Elem)super.clone();
		c.e=(int)e.clone();
		c.next=null;
		return c;
	}
*/
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?