We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0950901 commit 9766a2bCopy full SHA for 9766a2b
app/src/main/java/com/fernandocejas/android10/rx/sample/RandomStringGenerator.java
@@ -8,13 +8,16 @@
8
9
public class RandomStringGenerator {
10
11
- private static final int DEFAULT_STRING_LENGHT = 10;
+ private static final int DEFAULT_STRING_LENGHT = 12;
12
private static final char[] symbols;
13
14
static {
15
StringBuilder tmpSymbols = new StringBuilder();
16
- for (char ch = 'a'; ch <= 'z'; ch++) {
17
- tmpSymbols.append(ch);
+ for (char numberChar = '0'; numberChar <= '9'; numberChar++) {
+ tmpSymbols.append(numberChar);
18
+ }
19
+ for (char letterChar = 'a'; letterChar <= 'z'; letterChar++) {
20
+ tmpSymbols.append(letterChar);
21
}
22
symbols = tmpSymbols.toString().toCharArray();
23
0 commit comments