⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messageformattest.java

📁 linux下编程用 编译软件
💻 JAVA
字号:
import java.text.*;public class MessageFormatTest{  public static void main(String args[])    {      try {	String[] sa = new String[3];	String format = "{0}.{1}() {2}";	sa[0] = "MessageFormat";	sa[1] = "format";	sa[2] = "worked";	String message = MessageFormat.format(format, (Object[])sa);	if (null == message)	  throw new Exception("Unable to format message");	System.out.println("PASSED: " + message);      } catch (Exception e) {	System.out.println("FAILED: " + e);      }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -