Java String Format getAnswerKey(String itemFormat)

Here you can find the source of getAnswerKey(String itemFormat)

Description

get Answer Key

License

Apache License

Declaration

public static String getAnswerKey(String itemFormat) 

Method Source Code

//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;
        }
    }
}

Related

  1. formatStringTo80Columns(String str)
  2. formatTooltip(String tooltip)
  3. formatTreeLines(String tree)
  4. formatVarname(StringBuilder buffer, Object varname)
  5. formatWords(String words, String delimiter, boolean isHeaderUpperCase)
  6. getCodeFileName(String fileNameFormat, String randomCode)
  7. getDBPediaFormatDescriptions( String descriptionStr)
  8. getEmailFormatError(String fieldPropertyName)
  9. getFormat(String key, ResourceBundle bundle)