title: Need some advice on dealing with many fields in Java
body: <p>This might be a stupid question but I'm working on a 2-D Java game and one of my classes has a LOT of fields. </p>
  
  <p>Rather than creating getters and setters for all these fields and cluttering up the class, I'm thinking it would be better to just create a primary get and set function that takes these arguments: 
  - A string value with the name of the field I want to access
  - the value itself to set the field to (setter function only). </p>
  
  <p>Is there any better way for doing this that doesn't involve setting all the fields to public or package private or am I on the right track? </p>
  
  <p>Essentially I'd create an array to hold all these fields but then I'd lose the convenience of NetBeans auto-complete when looking at functions for these fields.</p>