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.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 11882

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
It's not a secret anymore!