import java.util.Locale;
import java.util.ResourceBundle;
public class MultiLanguageDemo {
public static void main(String[] args) {
Locale locale = new Locale(“zh”, “CN”); // 简体中文
ResourceBundle bundle = ResourceBundle.getBundle(“messages”, locale);
System.out.println(bundle.getString(“welcome.message”));
}
}
利唐i人事HR社区,发布者:hiHR,转转请注明出处:https://www.ihr360.com/hrnews/20241239445.html