package com.jmlb0003.jokes.gradlejokesproject;

public final class Joker {

    private Joker() {
    }

    public static String getJoke() {
        return "This is totally a funny joke";
    }

}

@@ -45,147 +45,598 @@
 t;%0A%0A
-public final class Joker %7B%0A%0A    private Joker() %7B%0A    %7D%0A%0A    public static String getJoke() %7B%0A        return %22This is totally a funny joke%22
+import java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Random;%0A%0Apublic final class Joker %7B%0A%0A    private List%3CString%3E jokes;%0A%0A    public Joker() %7B%0A        jokes = new ArrayList%3C%3E();%0A        jokes.add(%22This is totally a funny joke%22);%0A        jokes.add(%22This is another joke%22);%0A        jokes.add(%22This is a joke about animals%22);%0A        jokes.add(%22This is a joke about films%22);%0A        jokes.add(%22This is a bad joke%22);%0A    %7D%0A%0A    public String getJoke() %7B%0A        if (jokes != null) %7B%0A            return jokes.get(new Random().nextInt(jokes.size()));%0A        %7D%0A        return null
 ;%0A  

Add more jokes to show and make the returned joke random