Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
List<Huehner> list = new ArrayList<Huehner>();
public class Hof<Henne> extends ArrayList<Henne> implements Collection<Henne>
List<Huehner) deineCollection = ...
deineCollection = new ArrayList<>();
public class Hof extends AbstractList<String> implements Collection<String> {
// implement
}
implements Collection
public class Hof<String> {}
public class Hof<T> {}
public class Hof<T extends Tier> {}
public class Hof<T extends Tier> extends ArrayList<T> {
public static void main(String[] args) {
Hof<Henne> hof = ...
}
}
Ich möchte eine Klasse haben, die das Interface Collection implementiert und von ArrayList erbt.
Das ist aber Unsinn.
[JAPI]ArrayList[/JAPI] ist bereits eine [JAPI]Collection[/JAPI], weil sie das Interface Collection implementiert.