Package co.edu.eafit.day1.collections

Examples of co.edu.eafit.day1.collections.Collections


    public Animal getAnimalById(int id) throws NoAnimalException {
      Animal animal = mapAnimalById.get(id);
      if(animal != null){
            return animal;
        }else{
            throw new NoAnimalException();
        }
    }
View Full Code Here


    public Animal getDogByDogName(String name) throws NoDogsNameException {
      Animal dog = mapDogByName.get(name);
      if(dog != null){
        return dog;
      }else{
        throw new NoDogsNameException();
      }
    }
View Full Code Here

TOP

Related Classes of co.edu.eafit.day1.collections.Collections

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.