fin arbre
This commit is contained in:
12
DEV3.2/arbre/infixe/OperandNode.java
Normal file
12
DEV3.2/arbre/infixe/OperandNode.java
Normal file
@@ -0,0 +1,12 @@
|
||||
public class OperandNode extends Node {
|
||||
int value;
|
||||
|
||||
OperandNode(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toInfix() {
|
||||
return Integer.toString(value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user