[Solved] error in the enum class [closed]

No there is no “error in the enum class”. You have problems in the toString (see below). You probably need the following public String toString() { return “ID: “+ID + ” First Name: “+FirstName+” Last Name: ” +LastName+” Marital Status: “+ Status +” Age: “+Age; } Problems: You can’t return System.out.println(…) (it returns void, it … Read more