小编use*_*636的帖子

我如何在java中显示我的哈希表的内容

我实现了一个哈希表,我想显示内容,但我不知道该怎么做。

这是我的驱动程序类:

package myHashTable;

import java.util.InputMismatchException;
import java.util.Scanner;

public class MyHashDrivergood{

private static String fileName  = "";
private static int choice   =   0;
private int initialCapacity =   0;
private static String[] testData = null;

public static void main(String[] args){

    Scanner keyboard = new Scanner(System.in);

    MyHashTableTable<String, String> dataTested = new MyHashTableTable<String,String>
                                            ()>;

while( choice != 999 ){

  try {
    System.out.println("Please enter your choice to use the HashTable: (999:
                               End of program) ");
    System.out.println("Read the files, store data in an array,  and …
Run Code Online (Sandbox Code Playgroud)

java hashtable

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

hashtable ×1

java ×1