Here you can find the source of getString(Properties props, String key)
public static String getString(Properties props, String key)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static String getString(Properties props, String key) { String value = ""; if (props.containsKey(key)) { value = props.getProperty(key); }// ww w . java2s. c o m return value; } public static String getString(Properties props, String key, String defalutValue) { String value = defalutValue; if (props.containsKey(key)) { value = props.getProperty(key); } return value; } }