Skip to content
Snippets Groups Projects
Commit 9d13b2c5 authored by Martin Schmollinger's avatar Martin Schmollinger
Browse files

Minor changes

parent a2846296
No related branches found
No related tags found
No related merge requests found
......@@ -21,11 +21,13 @@ public class Faculty {
}
public void addProfessor(Professor professor) {
profs.add(professor);
if (!profs.contains(professor))
profs.add(professor);
}
public void addAssistent(Assistent assistent) {
assis.add(assistent);
if (!assis.contains(assistent))
assis.add(assistent);
}
public ArrayList<Professor> getProfs() {
......
......@@ -50,4 +50,12 @@ public class Professor {
public String toString() {
return name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
}
\ No newline at end of file
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package io.fp.campus;
class AppTest {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment