node.java

来自「数据结构java--简单功能的计算器」· Java 代码 · 共 58 行

JAVA
58
字号
package myPackage;
public class Node{    //节点类
    public Node next;
	char X_CHAR;
	float X_NUM;
	int X_Point;
	int Judgment; //判断标记系数正负
	
	public Node(Node nextval){
	    next=nextval;
	}
	
    public Node(float X_NUM,char X_CHAR,int X_Point,int Judgment,Node next){
		this.next=next;
		this.X_CHAR=X_CHAR;
		this.X_NUM=X_NUM;
		this.X_Point=X_Point;
		this.Judgment=Judgment;
	}
		
	public void setX_CHAR(char X_CHAR){
		this.X_CHAR=X_CHAR;
	}
	
	public char getX_CHAR(){
		return X_CHAR;
	}
	
	public void setX_NUM(float X_NUM){
		this.X_NUM=X_NUM;
	}
	
	public float getX_NUM() {
		return X_NUM;
	}
	
	public void setX_Point(int X_Point){
		this.X_Point=X_Point;
	}
	public int getX_Point(){
		return X_Point;
	}
	public void setNEXT(Node next){
		this.next=next;
	}
	
	public Node getNEXT(){
		return next;
	}
	
	public void setJudgment(int Judgment){
		this.Judgment=Judgment;
	}
	
	public int getJudgment(){
		return Judgment;
	}
}

⌨️ 快捷键说明

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