Here you can find the source of getLocalizedProperties(String[] propertyKeys, Properties properties)
static public Properties getLocalizedProperties(String[] propertyKeys, Properties properties)
//package com.java2s; /******************************************************************************* * Copyright (c) 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors://from w w w . ja v a 2s . c om * IBM Corporation - initial API and implementation *******************************************************************************/ import java.util.*; public class Main { static public Properties getLocalizedProperties(String[] propertyKeys, Properties properties) { Properties localizedProperties = new Properties(); for (int i = 0; i < propertyKeys.length; i++) { String key = propertyKeys[i]; if (key != null) { String localizedValue = properties.getProperty(key); if (localizedValue != null) localizedProperties.put(key, localizedValue); } } return localizedProperties; } }