This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm using a Hashtable to map the variable name to the corresponding method:
Is there a means of getting the values if I were to capitalize the first character and preface it with "get"? It would be so much simpler than typing in all that code. I've already done it for one program, but I would like to not EVER have to do that again (about 65 variables to code). I already have enough to do. Yes, I'm whining. Thanks.
You could use reflection to get the value directly. This is slower than regular code though. I'm not sure I understand the problem. Most IDEs let you generate the getters and setters so you don't have to type them.