Java Calendar getDisplayName方法 Java示例查找代理设置2 Java Calendar getDisplayNames方法 Java Calendar getDisplayName方法 package com.codingdict; import java.util.*; public class CalendarGetDisplayNameEx { public static void main(String args[]) { // create objects of locale class Locale object1 = new Locale("GERMAN", "Germany"); Locale object2 = new Locale("FRENCH", "France"); System.out.println("Object1 is : " + object1); System.out.println("Object2 is : " + object2); // get the display name for object1 String objName = object1.getDisplayName(); // print the results System.out.println("Name for object1 : " + objName); // get the display name for object2 objName = object2.getDisplayName(); System.out.println("Name for object2 : " + objName); } } Java示例查找代理设置2 Java Calendar getDisplayNames方法