Here you can find the source of getAnswerKey(String itemFormat)
public static String getAnswerKey(String itemFormat)
//package com.java2s; //License from project: Apache License import java.util.Arrays; import java.util.List; public class Main { public static String getAnswerKey(String itemFormat) { List formats = Arrays.asList("EBSR", "EQ", "NL", "SA", "ER", "GI", "HT", "MI", "TI", "WER", "WORDLIST", "TUT", "SIM", "PASS"); if (formats.contains(itemFormat)) { return itemFormat; } else {//from ww w . j av a 2s. co m return null; } } }