static public String [ ] getAllProperties ( ) { java . util . Properties prop = System . getProperties ( ) ; java . util . ArrayList < String > list = new java . util . ArrayList < String > ( ) ; java . util . Enumeration < ? > enumeration = prop . propertyNames ( ) ; while ( enumeration . hasMoreElements ( ) ) { list . add ( ( String ) enumeration . nextElement ( ) ) ; } return list . toArray ( new String [ 0 ] ) ; }
Get all property names .