Your own enum

  • 28
  • Locked
Make Column implement the Columnable interface. See the Javadocs for a description of its methods. Implement the logic of the Column.getVisibleColumns() method. The Column.configureColumns() method is already implemented. Don't change it. Don't create additional fields.
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Justin Smith
Level 29 , Greenfield, USA, United States
17 January, 22:30
The main complexity of this task is having an array with integer indexes that contain integer values that represent another ordering system. Since arrays do not have an indexOf method (unfortunately) it's kind of tedious but necessary to search for values to get the right index. Definitely a good task, though. Before this chapter I had previously thought enums were very simple, I didn't even realize they could contain other methods.