# Java Guild Meeting 5/2018

Gi11i4m
12.3K views

### Open Source Your Knowledge, Become a Contributor

There are a few directions in which you could take this method. Try out the following exercises. Don't forget to write tests! You can reuse the class hierarchy from the previous exercise to write tests and experiment. As a reminder again: don't forget that e.g. List<String> is not a subclass of List<Object>, but String[] does inherit from Object[]!.
3. As an extra, allow the results from (1) and (2) to return an array/list of a supertype of the type in the original array/list, e.g. supply a Integer[] and allow the result of the method to be assigned to a Number[].