Hi The code below prints this out [goods out, firstname, lastname] [id, adress1] [country, phone] [goods in] Now how can i get my code to print out the same, but instead of using the strings Values and keys, use hashtables? Also how can i do it without using the (public static void getval) Hope You can solve this nicky import java.io.*; import java.lang.*; import java.util.*; public class has3{ public static void main(String[] args) { String keys[] = { "firstname", "lastname", "id", "adress1", "phone", "county", "post code", "country", "goods in", "goods out" };//System.out.println(keys); String values[] = { "ben", "ben", "alex", "alex", "matt", "matt", "mum", "mum", "dad", "ben" }; // First, map keys to values in a hashtable Hashtable hash = new Hashtable(); // the code matches values one by one for each of the keys for(int i = 0; i < keys.length; i++) { hash.put(keys[i], values[i]);
} // Then we find each value and remove it from the hashtable for(int j = 0; j < values.length; j++)