主题:大家有空帮我调一下这个小程序
大家谁有空帮我调一下
import java.lang.*;
import java.lang.Integer;
import java.lang.Integer.*;
import java.lang.String;
import java.lang.String.*;
import java.util.*;
class hashtable
{
hashtable<String,Integer> ht=new Hashtable<String,Integer>( );
ht.put("Mike",12);
ht.put("Jack",13);
ht.put("Sarah",14);
public static void main(String[] args)
{
System.out.println("Mike=>"+ht.get("Mike"));
System.out.println("Jack=>"+ht.get("Jack"));
System.out.println("Sarah=>"+ht.get("Sarah"));
}
}
import java.lang.*;
import java.lang.Integer;
import java.lang.Integer.*;
import java.lang.String;
import java.lang.String.*;
import java.util.*;
class hashtable
{
hashtable<String,Integer> ht=new Hashtable<String,Integer>( );
ht.put("Mike",12);
ht.put("Jack",13);
ht.put("Sarah",14);
public static void main(String[] args)
{
System.out.println("Mike=>"+ht.get("Mike"));
System.out.println("Jack=>"+ht.get("Jack"));
System.out.println("Sarah=>"+ht.get("Sarah"));
}
}