How can I best check if a string input would be a valid java variable for coding? I\'m sure I\'m not the first one who is willing to do this. But maybe I\'m missing the righ
Just use the built-in isName method:
isName
public static boolean isName(CharSequence name)
This returns whether or not a name is a syntactically valid qualified name in the latest source version.
See the isName() documentation.