Skip to content

Instantly share code, notes, and snippets.

@webcane
Last active December 15, 2015 08:08
Show Gist options
  • Select an option

  • Save webcane/5228133 to your computer and use it in GitHub Desktop.

Select an option

Save webcane/5228133 to your computer and use it in GitHub Desktop.
put random big letters into list
// 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