Skip to content

Instantly share code, notes, and snippets.

View ramraj-edagutti's full-sized avatar

Ramraj Edagutti ramraj-edagutti

View GitHub Profile
@mike10004
mike10004 / TreeNode.java
Last active January 1, 2026 15:26
Tree node implementation with generics and Iterators/Streams instead of Enumerations.
/*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
* This is a modified version of javax.swing.tree.DefaultMutableTreeNode
* from Oracle Java 8.
*/
package com.github.mike10004.tree;
import javax.annotation.Nullable;
/**
* ArrayBinaryTree implements the BinaryTreeADT interface using an array
*
* @author Dr. Lewis
* @author Dr. Chase
* @version 1.0, 8/19/08
*/
package jss2;
import java.util.Iterator;
import jss2.exceptions.*;