Topic: 暫時放一放 |
Print this page |
1.暫時放一放 | Copy to clipboard |
Posted by: David_Zhuo Posted on: 2012-02-22 16:52 package test; import java.util.HashMap; public class Test { public static void main(String[] args) { } public String getStringValue(String old) { HashMap map = new HashMap(); map.put("Beijing", "北京"); map.put("Anshan", "鞍山"); map.put("Baotou", "包头"); map.put("Benxi", "本溪"); map.put("Central Hong Kong", "香港"); map.put("Changchun", "长春"); map.put("Chengdu", "成都"); map.put("Chongqing", "重庆"); map.put("Dalian", "大连"); map.put("Dandong", "丹东"); map.put("Foshan", "佛山"); map.put("Fuzhou", "福州"); map.put("Guangzhou", "广州"); map.put("Hangzhou", "杭州"); map.put("Hanjiang", "汉江"); map.put("Harbin", "哈尔滨"); map.put("Hohhot", "呼和浩特"); map.put("Huizhou", "惠州"); map.put("Jilin", "吉林"); map.put("Jinan", "济南"); map.put("Kowloon", "九龍"); map.put("Kunming", "昆明"); map.put("Lanzhou", "兰州"); map.put("Luancheng", "栾城"); map.put("Macau", "澳门"); map.put("Nanjing", "南京"); map.put("Ningbo", "宁波"); map.put("Qingdao", "青岛"); map.put("Sanxiang", "三湘"); map.put("Shanghai", "上海"); map.put("Shekou", "蛇口"); map.put("Shenyang", "沈阳"); map.put("Shenzhen", "深圳"); map.put("Shijiazhuang", "石家庄"); map.put("Suifenhe", "绥芬河"); map.put("Suzhou", "苏州"); map.put("Taian", "泰安"); map.put("Taiyuan", "太原"); map.put("Tanggu", "塘沽"); map.put("Tangshan", "唐山"); map.put("Tianjin", "天津"); map.put("Urumqi", "乌鲁木齐"); map.put("Wuhan", "武汉"); map.put("Xiamen", "厦门"); map.put("Xian", "西安"); map.put("Yantai", "烟台"); map.put("Zhengzhou", "郑州"); map.put("Zhongshan", "中山"); map.put("(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi", "(GMT+08:00) 北京, 重庆, 香港, 乌鲁木齐"); map.put("China", "中国"); map.put("China Standard Time", "中国标准时间"); map.put("United States", "美国"); map.put("Brunei", "文莱"); map.put("(GMT+08:00) Kuala Lumpur, Singapore", "(GMT+08:00) 吉隆坡, 新加坡"); if (map.get(old) == null) { return old; } return (String) map.get(old); } } |
2.Re:暫時放一放 [Re: David_Zhuo] | Copy to clipboard |
Posted by: ditty Posted on: 2012-02-23 20:54 if (map.get(old) == null) { return old; } -> if (!map.containsKey(old)) { return old; } |
3.Re:暫時放一放 [Re: David_Zhuo] | Copy to clipboard |
Posted by: David_Zhuo Posted on: 2012-04-24 08:44 微星880GM-E41主板的‘ATI RADEON HD 4250 (RS880)’ 显卡驱动 蓝屏问题,听说这个可以解决,晚上回去试试: http://drivers.mydrivers.com/drivers/402-160837-AMD-Radeon-HD-2400-HD-2600-HD-2900-HD-34/ |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |