-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNicknames.java
More file actions
70 lines (66 loc) · 1.58 KB
/
Nicknames.java
File metadata and controls
70 lines (66 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import java.util.*;
public class Nicknames {
private static int idx = -1; // -1 value so it starts from 0
public static String get() {
idx = (idx + 1) % nicks.length;
return nicks[idx]
.toLowerCase()
.replaceAll("[^a-z0-9_]+", " ")
.trim()
.replaceAll("\\s+", "_");
}
private static String[] nicks = {
"Scooby-Dum",
"Bambi",
"Boo-Boo Bear",
"Louie",
"Underdog",
"George Jetson",
"Quick Draw McGraw",
"Velma Dinkley",
"Henery Hawk",
"Blacque Jacque Shellacque",
"Atom Ant",
"Grape Ape",
"Captain Caveman",
"Lucy van Pelt",
"Darkwing Duck",
"Magica De Spell",
"Top Cat",
"Space Ghost",
"Felix the Cat",
"Magilla Gorilla",
"Fred Jones",
"Wally Gator",
"Jiminy Cricket",
"Eeyore",
"Scrooge McDuck",
"Spike Bulldog",
"Mighty Mouse",
"Huey",
"Dewey",
"Muttley",
"Hugo the Abominable Snowman",
"Chip",
"Dale",
"Charlie Brown",
"Homer Simpson",
"Snagglepuss",
"Penelope Pitstop",
"The Powerpuff Girls",
"Betty Boop",
"Fred Flintstone",
"Mr. Magoo",
"Barney Rubble",
"Dopey",
"Boris Badenov",
"Natasha Fatale",
"Penelope Pussycat",
"Bart Simpson",
"Superman",
"Linus van Pelt",
"Cruella De Vil",
"Pluto",
"Granny"
};
}