aspose file tools
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

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Game Development
Reply locked New topic

Variable name from a string

Tim Porritt

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

Joined: Oct 02, 2003
Posts: 11742

closing duplicate post

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I agree. Here's the link:
subject: Variable name from a string