how to print all enum value in java?
<p>enum generalInformation {</p>

<pre><code>NAME {
    @Override
    public String toString() {
        return "Name";
    }
},
EDUCATION {
    @Override
    public String toString() {
        return "Education";
    }
},
EMAIL {
    @Override
    public String toString() {
        return "Email";
    }
},
PROFESSION {
    @Override
    public String toString() {
        return "Profession";
    }
},
PHONE {
    @Override
    public String toString() {
        return "Phone";
    }
},;
</code></pre>

<p>}</p>

<p>I have that information are avaiable in enum .
1.how to print all enum values like ?</p>

<p>print.generalInformation</p>

<p>output:
Name
Education
Email
Phone</p>

<p>2.how to pass that enum generalInformation as a arg in another function ? </p>
