package haus.pup;

import com.pi4j.io.gpio.GpioController;
import com.pi4j.io.gpio.GpioFactory;
import haus.pup.karotzhw.*;

public class Karotz {
  public static void main(String args[]) {

    //final GpioController gpio = GpioFactory.getInstance();

    Speech speech = new Speech();
    //Ears ears = new Ears(gpio);

    speech.say("Well I guess that makes you a couple of naughty stewardeses.");

  }
}

@@ -121,73 +121,721 @@
 .*;%0A
-%0Apublic class Karotz %7B%0A  public static void main(String args%5B%5D) %7B
+import java.io.File;%0Aimport java.sql.Connection;%0Aimport java.sql.DriverManager;%0Aimport java.sql.SQLException;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Apublic class Karotz %7B%0A  public static void main(String args%5B%5D) %7B%0A    String dbURI = %22jdbc:h2:%22 + new File(%22karotz%22).getAbsolutePath();%0A    Logger logger = LoggerFactory.getLogger(%22Karotz%22);%0A%0A    // Conncet to DB%0A    logger.info(%22Connecting to DB at :%22 + dbURI);%0A    Connection db = null;%0A%0A    try %7B%0A      db = DriverManager.getConnection(dbURI);%0A    %7D catch (SQLException e) %7B%0A      e.printStackTrace();%0A    %7D%0A%0A    if (db != null) %7B%0A      logger.info(%22Connected to %22 + dbURI);%0A    %7D else %7B%0A      logger.error(%22Failed to make connection!%22);%0A    %7D
 %0A%0A  

create karrotz DB