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

📄 messagedemoresources_de.java

📁 its a kind of tutorial.
💻 JAVA
字号:
// Filename MessageDemoResources.java.
// German language resources for the MessageFormatDemo program.
//
// Written for JI book, Chapter 9 see text.
// Fintan Culwin, v 0.2, August 1997.

import java.util.ListResourceBundle;
import java.text.*;

public class MessageDemoResources_de extends ListResourceBundle { 

static final double[]     limits = {0,1,2};


static final String       finalPhrases[]  = {" 躡erweiungen",
                                             " 躡erweiung",
                                             " 躡erweiungen"};
static final ChoiceFormat finalFormatter  = 
                                  new ChoiceFormat( limits, finalPhrases);
  
static final Format formatters[] = { DateFormat.getTimeInstance( 
                                                        DateFormat.MEDIUM), 
                                        DateFormat.getDateInstance( 
                                                          DateFormat.FULL),                              
                                        NumberFormat.getInstance(),
                                        finalFormatter, 
                                        NumberFormat.getCurrencyInstance() 
                                   };

static final MessageFormat generator = new MessageFormat(
                          "Am {0} on {0} \ngab es {1} {1} totalling {2}.");       

   static final Object[][] contents = {    
      { "formatters", formatters },         
      { "generator",  generator }             
   }; // End contents.
                                     
   public Object[][] getContents() { 
      return contents;   
   } // End getContents.
} // End class MessageDemoResources_de.

⌨️ 快捷键说明

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