This flashcard is just one of a free flashcard set. See all flashcards!
14
Listen/ Implementierung
public class Liste{
private ListElement erstes;
public boolean isEmpty(){
return erstes == null;
}
public int getFirst(){
if (isEmpty()){
throw new Exception;
} else {
return erstes.wert;
}
}
private ListElement erstes;
public boolean isEmpty(){
return erstes == null;
}
public int getFirst(){
if (isEmpty()){
throw new Exception;
} else {
return erstes.wert;
}
}

Flashcard info:
Author: hristiana86
Main topic: Informatik
School / Univ.: HS
City: Mannheim
Published: 14.06.2010