Java tutorial
//package com.java2s; import java.util.HashMap; import java.util.Vector; public class Main { static HashMap<String, Vector<String>> negMap = new HashMap<String, Vector<String>>(); public static Vector<String> getNegativeAssociation(String word) { Vector<String> result = new Vector<String>(); result.add(word); try { result.addAll(negMap.get(word)); } catch (Exception e) { } return result; } }