@@ -0,0 +1,806 @@
+/**%0A * Let's make our magic 8 ball game work repeatedly!%0A * Maybe we'll even allow exiting...%0A */%0Apackage com.comp110.lecture10;%0A%0Aimport java.util.Scanner;%0A%0Apublic class Magic8BallRedux %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A    %0A    System.out.println(%22Ask me a yes/no question...%22);%0A    Scanner keyboard = new Scanner(System.in);%0A    keyboard.nextLine(); // We don't care what the user asks...%0A%0A    // Generate a random response value%0A    double randomNumber = Math.random() * 3.0;%0A    int response = (int)randomNumber;%0A    %0A    // Depending on the generated value, pick a response%0A    if (response == 0) %7B%0A      System.out.println(%22Definitely. Yes.%22);%0A    %7D else if (response == 1) %7B%0A      System.out.println(%22Eh, maybe...%22);%0A    %7D else %7B%0A      System.out.println(%22Nope, no way.%22);%0A    %7D%0A%0A  %7D%0A%0A%7D%0A

Add magic 8 ball demo to lecture 10.