Nodee - public void setRight(Nodee right if(isOperator...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * CS20S08 PA2 * Esra * 30 May 2008 */ public class Nodee { private Nodee left, right; private boolean isOperator; private String info; public Nodee(String info, boolean isOperator) {; this.isOperator=isOperator; left=null; right=null; } public void setLeft(Nodee left) { if(isOperator) this.left = left;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } public void setRight(Nodee right) { if(isOperator) this.right = right; } public String getInfo() { return info; } public Nodee getLeft() { return left; } public Nodee getRight() { return right; } public boolean isOperator() { return isOperator; } }...
View Full Document

This note was uploaded on 10/02/2009 for the course CS 20 taught by Professor Agrawal during the Spring '08 term at UCSB.

Ask a homework question - tutors are online