Initial commit of project.
parent
de94045927
commit
eb723e31b1
|
@ -1,13 +1,13 @@
|
||||||
package de.hs_mannheim.informatik.bibliothek;
|
package de.hs_mannheim.informatik.bibliothek;
|
||||||
|
|
||||||
import de.hs_mannheim.informatik.bibliothek.domain.Buch;
|
import de.hs_mannheim.informatik.bibliothek.domain.Buch;
|
||||||
import de.hs_mannheim.informatik.bibliothek.facade.Bibliotheksystem;
|
import de.hs_mannheim.informatik.bibliothek.facade.Bibliothekssystem;
|
||||||
import de.hs_mannheim.informatik.bibliothek.ui.UI;
|
import de.hs_mannheim.informatik.bibliothek.ui.UI;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Bibliotheksystem bs = new Bibliotheksystem("Goethe-Universität Frankfurt");
|
Bibliothekssystem bs = new Bibliothekssystem("Goethe-Universität Frankfurt");
|
||||||
Buch b1 = new Buch("Artificial Intelligence: Learning automation skills with Python",
|
Buch b1 = new Buch("Artificial Intelligence: Learning automation skills with Python",
|
||||||
"Chris Baker", 2019 , 2 );
|
"Chris Baker", 2019 , 2 );
|
||||||
Buch b2 = new Buch("PHP und MySQL: für Einsteiger", "Michael Bonacina", 2018 , 1);
|
Buch b2 = new Buch("PHP und MySQL: für Einsteiger", "Michael Bonacina", 2018 , 1);
|
||||||
|
|
|
@ -6,11 +6,11 @@ import de.hs_mannheim.informatik.bibliothek.domain.Buch;
|
||||||
import de.hs_mannheim.informatik.bibliothek.domain.Bibliothek;
|
import de.hs_mannheim.informatik.bibliothek.domain.Bibliothek;
|
||||||
import de.hs_mannheim.informatik.bibliothek.domain.Student;
|
import de.hs_mannheim.informatik.bibliothek.domain.Student;
|
||||||
|
|
||||||
public class Bibliotheksystem {
|
public class Bibliothekssystem {
|
||||||
|
|
||||||
private Bibliothek bib;
|
private Bibliothek bib;
|
||||||
|
|
||||||
public Bibliotheksystem(String name) {
|
public Bibliothekssystem(String name) {
|
||||||
this.bib = new Bibliothek(name);
|
this.bib = new Bibliothek(name);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,14 +2,14 @@ package de.hs_mannheim.informatik.bibliothek.ui;
|
||||||
|
|
||||||
import java.util.Scanner;
|
import java.util.Scanner;
|
||||||
|
|
||||||
import de.hs_mannheim.informatik.bibliothek.facade.Bibliotheksystem;
|
import de.hs_mannheim.informatik.bibliothek.facade.Bibliothekssystem;
|
||||||
|
|
||||||
public class UI {
|
public class UI {
|
||||||
|
|
||||||
private Bibliotheksystem bs;
|
private Bibliothekssystem bs;
|
||||||
Scanner sc = new Scanner(System.in);
|
Scanner sc = new Scanner(System.in);
|
||||||
|
|
||||||
public UI(Bibliotheksystem bs) {
|
public UI(Bibliothekssystem bs) {
|
||||||
this.bs = bs;
|
this.bs = bs;
|
||||||
menue();
|
menue();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue