📄 mybundle_en_ca.java
字号:
package examples.i18n;
import java.util.ListResourceBundle;
/** A class to demonstrate how to extend the
* ListResourceBundle class
*/
public class MyBundle_en_CA
extends ListResourceBundle {
/** This method must be overridden by this class
* @return Object[][] containing the key and
* resource pairs
*/
protected Object[][] getContents() {
Object[][] myContents = {
{ "count", new Integer(6) },
{ "weight", new Double(4.56) },
{ "name", "Edgar" },
{ "relationship", "neighbour" }
};
return myContents;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -