diff --git a/pom.xml b/pom.xml
index d73c078..c77c8a3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,6 +7,18 @@
io.zipcoder
Interfaces
1.0-SNAPSHOT
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+
+
+
+
@@ -15,5 +27,10 @@
4.12
test
+
+ io.zipcoder
+ Interfaces
+ 1.0-SNAPSHOT
+
diff --git a/src/main/java/io/zipcoder/Animal.java b/src/main/java/io/zipcoder/Animal.java
new file mode 100644
index 0000000..eaca3c5
--- /dev/null
+++ b/src/main/java/io/zipcoder/Animal.java
@@ -0,0 +1,8 @@
+package io.zipcoder;
+
+/**
+ * created by Frankie on 02/26/18
+ */
+public interface Animal {
+ String speak();
+}
diff --git a/src/main/java/io/zipcoder/Application.java b/src/main/java/io/zipcoder/Application.java
index 3a257cb..3deddda 100644
--- a/src/main/java/io/zipcoder/Application.java
+++ b/src/main/java/io/zipcoder/Application.java
@@ -1,5 +1,69 @@
package io.zipcoder;
+import java.util.*;
+
+//April
+/**
+ * Tests made by Frankie Rodriguez on 02/26/18
+ */
+
public class Application {
+ private String nameOfPet;
+ private String typeOfPet;
+ private Integer amountOfPets;
+
+
+ ArrayList petList = new ArrayList<>();
+
+ public Application() {
+ }
+
+ public Application(String typeOfPet, String nameOfPet) {
+ this.typeOfPet = typeOfPet;
+ this.nameOfPet = nameOfPet;
+ }
+
+ public void welcomeUser() {
+ System.out.println("******************** WELCOME PET OWNER **********************\n" +
+ "We will be asking you a couple of questions about your pets.\n" +
+ "No need to worry. We won't be doing anything sketchy with\n" +
+ "this info. Your pet info is safe with us :) \n");
+ }
+
+ public String getNameOfPet() {
+ Scanner input = new Scanner(System.in);
+ System.out.println("What is it's name?");
+ return input.nextLine();
+ }
+
+ public String getTypeOfPet() {
+ Scanner input = new Scanner(System.in);
+ System.out.println("What kind of pet is it?");
+ return input.nextLine();
+ }
+
+ public Integer howManyPetsYouGotDamn() {
+ Scanner input = new Scanner(System.in);
+ System.out.println("How many pets do you have?\n\nEnter the amount of pets: ");
+ return input.nextInt();
+
+ }
+
+ public ArrayList fillList(String nameOfPet, String typeOfPet) {
+ petList.add(new Pet());
+ return petList;
+ }
+
+
+ public static ArrayList sortList(ArrayList petList) {
+ Collections.sort(petList, (Pet petOne, Pet petTwo)-> petOne.getName().compareTo(petTwo.getName()));
+ return petList;
+
+ }
+
+
+
}
+
+
diff --git a/src/main/java/io/zipcoder/Cat.java b/src/main/java/io/zipcoder/Cat.java
new file mode 100644
index 0000000..6063f1d
--- /dev/null
+++ b/src/main/java/io/zipcoder/Cat.java
@@ -0,0 +1,27 @@
+package io.zipcoder;
+
+public class Cat extends Pet implements Animal{
+ private String name;
+ private Cat cat;
+
+ public Cat() {
+ this.name = "";
+ }
+
+ public Cat(String name){
+ this.name = name;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String speak() {
+ Animal cat = new Animal() {
+ public String speak() {
+ return "Meow (ever so softly)";
+ }
+ };
+ return cat.speak();
+ }
+}
diff --git a/src/main/java/io/zipcoder/ComparePets.java b/src/main/java/io/zipcoder/ComparePets.java
new file mode 100644
index 0000000..ce0ba3d
--- /dev/null
+++ b/src/main/java/io/zipcoder/ComparePets.java
@@ -0,0 +1,9 @@
+package io.zipcoder;
+
+import java.util.Comparator;
+
+public class ComparePets implements Comparator {
+ public int compare(Pet p1, Pet p2) {
+ return p1.getName().compareTo(p2.getName());
+ }
+}
diff --git a/src/main/java/io/zipcoder/Dog.java b/src/main/java/io/zipcoder/Dog.java
new file mode 100644
index 0000000..93d16bd
--- /dev/null
+++ b/src/main/java/io/zipcoder/Dog.java
@@ -0,0 +1,27 @@
+package io.zipcoder;
+
+public class Dog extends Pet implements Animal{
+ private String name;
+ private Dog dog;
+
+ public Dog() {
+ this.name = "";
+ }
+
+ public Dog(String name) {
+ this.name = name;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String speak() {
+ Animal dog = new Animal(){
+ public String speak() {
+ return "Woof!";
+ }
+ };
+ return dog.speak();
+ }
+}
diff --git a/src/main/java/io/zipcoder/ElectricMouse.java b/src/main/java/io/zipcoder/ElectricMouse.java
new file mode 100644
index 0000000..e37607a
--- /dev/null
+++ b/src/main/java/io/zipcoder/ElectricMouse.java
@@ -0,0 +1,28 @@
+package io.zipcoder;
+
+public class ElectricMouse extends Pet implements Animal{
+ private String name;
+ private ElectricMouse electricMouse;
+
+ public ElectricMouse() {
+ this.name = "";
+ }
+
+ public ElectricMouse(String name) {
+ this.name = name;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ @Override
+ public String speak() {
+ Animal electricMouse = new Animal() {
+ public String speak() {
+ return "PIKACHUUUUUUUU!";
+ }
+ };
+ return electricMouse.speak();
+ }
+}
diff --git a/src/main/java/io/zipcoder/Pet.java b/src/main/java/io/zipcoder/Pet.java
new file mode 100644
index 0000000..d05c765
--- /dev/null
+++ b/src/main/java/io/zipcoder/Pet.java
@@ -0,0 +1,29 @@
+package io.zipcoder;
+
+public class Pet {
+ private String name;
+ private Dog dog;
+ private Cat cat;
+ private Turtle turtle;
+ private ElectricMouse electricMouse;
+ public String typeOfPet;
+
+ public Pet(){
+ this.name = "";
+ this.typeOfPet = "";
+ }
+
+ public Pet(String name, String typeOfPet) {
+ this.name = name;
+ this.typeOfPet = typeOfPet;
+ }
+
+ public String speak(){
+ return "Meow (ever so softly)";
+ }
+
+ public String getName() {
+ return name;
+ }
+
+}
diff --git a/src/main/java/io/zipcoder/Turtle.java b/src/main/java/io/zipcoder/Turtle.java
new file mode 100644
index 0000000..0ade5a6
--- /dev/null
+++ b/src/main/java/io/zipcoder/Turtle.java
@@ -0,0 +1,28 @@
+package io.zipcoder;
+
+public class Turtle extends Pet implements Animal{
+ private String name;
+ private Turtle turtle;
+
+ public Turtle() {
+ this.name = "";
+ }
+
+ public Turtle(String name) {
+ this.name = name;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+
+ public String speak() {
+ Animal turtle = new Animal() {
+ public String speak() {
+ return "WEEESNAW!";
+ }
+ };
+ return turtle.speak();
+ }
+}
diff --git a/src/test/java/io/zipcoder/ApplicationTest.java b/src/test/java/io/zipcoder/ApplicationTest.java
index b744df5..ca334d8 100644
--- a/src/test/java/io/zipcoder/ApplicationTest.java
+++ b/src/test/java/io/zipcoder/ApplicationTest.java
@@ -1,5 +1,149 @@
package io.zipcoder;
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.InputStream;
+import java.io.PrintStream;
+import java.util.ArrayList;
+
+/**
+ * created by Frankie on 02/26/18
+ */
public class ApplicationTest {
+ Application application = new Application();
+ ArrayList petList = new ArrayList<>();
+
+ /**
+ * All tests below contain methods that can be called from a single operation() method. For example,
+
+ public void operation(){
+ welcomeUser();
+ String type = getTypeOfPet();
+ String name = getNameOfPet();
+ ArrayList