Package com.eafit.collectionhomework.logic

Examples of com.eafit.collectionhomework.logic.DataAccessController


public class Excecute {

  @SuppressWarnings("unused")
  public static void main(String[] args) {
    // TODO Auto-generated method stub
    DataAccessController da = new DataAccessController();
    for (int c = 0; c < 5; c++) {
      Cat cat = new Cat();
      cat.setId(String.format("Animal%s", 1));
      da.add(cat);
    }
    for (int c = 0; c < 3; c++) {
      Dog dog = new Dog();
      dog.setId(String.format("Animal%s", 1));
      dog.setDogName(String.format("Dog%s", c));
      da.add(dog);
    }
    ArrayList<Animal> allAnimals = da.getAllAnimals();
    ArrayList<Dog> allDogs = da.getAllDogs();
    Dog dog = da.getDogByDogName("Dog2");
    Animal oldestAnimal = da.getOldestAnimalAndRemove();
    Animal animalById= da.getAnimalById("Animal1");
    HashSet<Animal> unique = da.getUniqueAnimals();
   
  }
View Full Code Here

TOP

Related Classes of com.eafit.collectionhomework.logic.DataAccessController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.