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

📄 countrymap.java

📁 webwork source
💻 JAVA
字号:
/* * WebWork, Web Application Framework * * Distributable under Apache license. * See terms of license at opensource.org */package webwork.examples;import webwork.action.ActionSupport;import java.util.Map;import java.util.TreeMap;/** *	A map of countries in a couple of continents *       *	@see <related> *	@author Rickard 謆erg (<email>) *	@version $Revision: 1.4 $ */public class CountryMap   extends ActionSupport{   // Attributes ----------------------------------------------------   Map countries;      // Public --------------------------------------------------------   public Map getCountries()   {      return countries;   }         // Action implementation -----------------------------------------   protected String doExecute()      throws Exception   {      countries = new TreeMap();            Map continent = new TreeMap();      continent.put("sv", "Sweden");      continent.put("uk", "United Kingdom");      continent.put("ge", "Germany");      countries.put("Europe", continent);            continent = new TreeMap();      continent.put("ch", "China");      continent.put("in", "India");      continent.put("ru", "Russia");      countries.put("Asia", continent);            continent = new TreeMap();      continent.put("us", "USA");      continent.put("ca", "Canada");      countries.put("North America", continent);            return SUCCESS;   }}

⌨️ 快捷键说明

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