This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package chap10; | |
import java.util.*; | |
public class Q2{ | |
public static void main(String args[]){ | |
String [] anaList = new String[6]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BinarySearchTree { | |
public static Node root; | |
public BinarySearchTree(){ | |
this.root = null; | |
} | |
public boolean find(int id){ | |
Node current = root; | |
while(current!=null){ | |
if(current.data==id){ |