Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- import java.util.Iterator;
- /**
- * Write a description of class Uia here.
- *
- * @author Christian Moen
- * @version 1.0
- */
- public class Uia
- {
- private ArrayList<Student> studenter;
- public Uia() {
- this.studenter = new ArrayList<>();
- }
- public void fjernStudent() {
- Iterator<Student> liste;
- liste = studenter.iterator();
- while (liste.hasNext()) {
- Student student = liste.next();
- if (student.getFornavn().equals(student)) {
- liste.remove();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement