as keycode() returns an int, perhaps all you need to do is something like this
and to check
Joined: Jul 22, 2012
What i'm trying to do is get the keycode for a string.
e.g If the string says "a", i want to return the integer for that, which is KeyEvent.VK_A, or 65.
I already found a way to do this, but it's really long and i have to write out every letter of the alphabet 3 times.
Joined: Jun 09, 2003
you can simplify it a bit
if(i.equals("A") || i.equals("a"))
can be done
or, in my earlier post
and the test:
all should print 67
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Add a letter to the end of a variable name