1-Relational Database/1-Relational DB Concepts/B-Tree & B+ Tree/java/BTreeBase.java
/**
     * Searches for the given key in this B-tree, and returns the associated
     * record address if found.
     * @param key key to search for
     * @return associated record address if found, null if not found
     */
Searches for the given key in this B-tree, and returns the associated
record address if found.
@param key key to search for
@return associated record address if found, null if not found
Searches for the given key in this B - tree and returns the associated record address if found . @param key key to search for @return associated record address if found null if not found
public String search(int key) {
        if (root == null) {
            return null;
        }
        return searchHelper(root, key);
    }
public String search ( int key ) { if ( root == null ) { return null ; } return searchHelper ( root , key ) ; }
Searches for the given key in this B-tree, and returns the associated
 record address if found.
Searches for the given key in this B - tree and returns the associated record address if found .