prüfungsanmeldung

master
ifembanefo 2023-05-02 08:47:11 +02:00
parent 32c617a672
commit bdadc3b88b
2 changed files with 38 additions and 1 deletions

View File

@ -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;
}
}

View File

@ -1 +0,0 @@
package postfixNotation;