Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.HashMap;

import java.util.Vector;

public class Main {
    static HashMap<String, Vector<String>> posMap = new HashMap<String, Vector<String>>();

    public static Vector<String> getPositiveAssociation(String word) {
        Vector<String> result = new Vector<String>();
        result.add(word);
        try {
            result.addAll(posMap.get(word));
        } catch (Exception e) {
        }
        return result;
    }
}