package com.test.property;
import java.io.InputStream;
import java.util.Locale;
import java.util.Properties;
import java.util.ResourceBundle;
public class TestProperty {
public static void main(String[] args) throws Exception
{
System.out.println(ResourceBundle.getBundle("test",Locale.CHINA).getString("hello"));
InputStream is = TestProperty.class.getResourceAsStream("/test_zh_CN.properties");
Properties prop =new Properties();
prop.load(is);
System.out.println(prop.getProperty("hello"));
}
}