How to print Attributes enumeration in Java (javax naming directory Attributes)

This is only a little piece of code to print all the IDs and values of a javax.naming.directory.Attributes. If you want to know more about this interface, please see official documentation (http://docs.oracle.com/javase/7/docs/api/javax/naming/directory/Attributes.html), but here, you have a little explanation about it: This interface represents a collection of attributes. In a directory, named objects can have…