package inter; import java.util.ResourceBundle; public class InterT1 { public static void main(String[] args) { ResourceBundle rb=ResourceBundle.getBundle("Message"); System.out.println("内容:"+rb.getString("info")); } }
Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name Message, locale zh_CN at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387) at java.util.ResourceBundle.getBundle(ResourceBundle.java:773) at inter.InterT1.main(InterT1.java:8)
出现异常了,断点异常什么意思。哪里有问题么,书上说直接就能输出
内容:中文,你好,{0}!
达拉崩吧斑得贝迪卜多比鲁翁
相关分类