Java tutorial
//package com.java2s; import java.util.Properties; public class Main { private static Properties config = null; public static String getValue(String key) { try { String value = config.getProperty(key); return value; } catch (Exception e) { e.printStackTrace(); System.err.println("ConfigInfoError" + e.toString()); return null; } } }