This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Game Development and the fly likes Variable name from a string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Game Development
Reply locked New topic
Author

Variable name from a string

Tim Porritt
Greenhorn

Joined: Jul 22, 2012
Posts: 4
Hi i'm not sure if this is possible or not, but i want to get a variable name from a string.
My code so far is as follows:



I'll add the rest of the alphabet later.

Thanks in advance for any help given.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11858
    
  18

closing duplicate post


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
Have you checked out Aspose?
 
subject: Variable name from a string
 
It's not a secret anymore!