Last active
December 15, 2015 08:08
-
-
Save webcane/5228133 to your computer and use it in GitHub Desktop.
put random big letters into list
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
| // put random big letters into list | |
| private static final void fillList(List<String> l, int size){ | |
| Random r = new Random(); | |
| for (int i = 0; i < size; i++) { | |
| int ascii = 65 + r.nextInt(26); // 65-A .. 90-Z | |
| String letter = new Character((char)ascii).toString(); | |
| l.add(letter); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment