1 import java.util.Enumeration;
 2 import java.util.Properties;
 3 
 4 public class Example609 {
 5     public static void main(String[] args) {
 6         // TODO Auto-generated method stub
 7         Properties properties = System.getProperties();
 8         Enumeration propertiesNames = properties.propertyNames();
 9         while (propertiesNames.hasMoreElements()) {
10             String key = (String) propertiesNames.nextElement();
11             String value = System.getProperty(key);
12             System.out.println(key+"->"+value);
13         }
14 
15     }
16 
17 }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-07-06
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案