Created
January 20, 2017 19:25
-
-
Save alex-sherwin/9415b4de8622a92ceeb918cfb334d201 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package varnames; | |
/** | |
* Characters you can use in java identifiers... for good practice... | |
*/ | |
public class VarNames { | |
public static void main(String[] args) throws Exception { | |
for (int i = Character.MIN_CODE_POINT; i <= Character.MAX_CODE_POINT; i++) | |
if (Character.isJavaIdentifierPart(i) && !Character.isAlphabetic(i)) | |
System.out.println((char) i); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment