klaus.dialogs
Class Jokes
java.lang.Object
klaus.dialogs.Jokes
public class Jokes
- extends Object
Constructor Summary |
Jokes()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
list
HashMap<JokeCategory,String[]> list
jokes
private static Jokes jokes
Jokes
public Jokes()
getJokes
public static Jokes getJokes()
getFileName
private String getFileName(String baseFileName,
String i18n)
throws FileNotFoundException
- Throws:
FileNotFoundException
readFile
private String[] readFile(String fileName)
getRandomJoke
public String getRandomJoke(JokeCategory cat)