vehicaltype car = new vehicaltype("carkey", "car");
vehicaltype motorcycle = new vehicaltype("motorcyclekey", "motorcycle");
vehicaltypelist.add(car);
vehicaltypelist.add(motorcycle);
list cars = new arraylist();
cars.add(new vehicalspecific("mercedeskey", "mercedes"));
cars.add(new vehicalspecific("hondakey", "honda"));
cars.add(new vehicalspecific("fordkey", "ford"));
list motorcycles = new arraylist();
motorcycles.add(new vehicalspecific("suzukikey", "suzuki"));
motorcycles.add(new vehicalspecific("yamahakey", "yamaha"));
vehicalspecificmap.put(car, cars);
vehicalspecificmap.put(motorcycle, motorcycles);
vehicaltype和vehicaltypelist类型和vehicalspecific(),vehicalspecificmap理解不来.
回复