⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 btreenewtest.java

📁 一个java的LDAP服务器
💻 JAVA
字号:
package org.javaldap.btree;

/**
 * Insert the type's description here.
 * Creation date: (6/17/2000 9:04:15 PM)
 * @author: Administrator
 */

import java.util.Enumeration;

public class BTreeNewTest {

	/**
	 * BTreeNewTest constructor comment.
	 */
	public BTreeNewTest() {
		super();
	}
	/**
	 * Starts the application.
	 * @param args an array of command-line arguments
	 */
	public static void main(java.lang.String[] args) {
		// Insert code to start the application here.
		BTree btree = new BTree(10);
		btree.put("one","no1");
		btree.put("two","no2");
		btree.put("three","no3");
		btree.put("four","no4");
		btree.put("five","no5");
		for (int i=1;i<100000;i++) {
			btree.put("key" + i,"value" + i);
		}

		Enumeration btenum = btree.keys();
		while (btenum.hasMoreElements()) {
			System.out.println("Key: " + (String)((StringComparator)btenum.nextElement()).getKey());
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -