prüfungsanmeldung
parent
32c617a672
commit
bdadc3b88b
|
@ -0,0 +1,38 @@
|
|||
package Set;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.util.*;
|
||||
|
||||
public class Pruefungsanmeldung {
|
||||
TreeSet<Student> anmeldung = new TreeSet<Student>();
|
||||
|
||||
public boolean anmelden(Student student) {
|
||||
if ((anmeldung.contains(student)))
|
||||
return false;
|
||||
else {
|
||||
anmeldung.add(student);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public class Student {
|
||||
|
||||
public Student(double mtrn, String nn, String vn, String pm) {
|
||||
matrikelnr = mtrn;
|
||||
nachname = nn;
|
||||
vorname = vn;
|
||||
prüfungsmodul = pm;
|
||||
}
|
||||
|
||||
double matrikelnr;
|
||||
String nachname;
|
||||
String vorname;
|
||||
String prüfungsmodul;
|
||||
|
||||
}
|
||||
|
||||
public static void main (String []args) {
|
||||
PrintStream cons=System.out;
|
||||
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
package postfixNotation;
|
Loading…
Reference in New Issue