Entfernung aller unnötigen FNF-Exceptions
parent
a65e7d18fe
commit
f3b27e37ce
|
|
@ -14,7 +14,7 @@ public class ShopTUI {
|
||||||
hauptmenu();
|
hauptmenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void hauptmenu() throws FileNotFoundException {
|
public static void hauptmenu(){
|
||||||
System.out.println("Was möchten Sie tun? \n(1=Produktsuche, 2=Warenkorbanzeige, 3=backend.Bestellung abschließen, 0=Programm beenden): ");
|
System.out.println("Was möchten Sie tun? \n(1=Produktsuche, 2=Warenkorbanzeige, 3=backend.Bestellung abschließen, 0=Programm beenden): ");
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
@ -63,12 +63,12 @@ public class ShopTUI {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public static void produktangebot() throws FileNotFoundException {
|
public static void produktangebot() {
|
||||||
System.out.println("Diese Produkte bieten wir an: \n");
|
System.out.println("Diese Produkte bieten wir an: \n");
|
||||||
shop.produkteListe();
|
shop.produkteListe();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void produktsuche() throws FileNotFoundException {
|
public static void produktsuche() {
|
||||||
while (true) {
|
while (true) {
|
||||||
System.out.println("Geben Sie das gewünschte backend.Produkt mit der ProduktNr an");
|
System.out.println("Geben Sie das gewünschte backend.Produkt mit der ProduktNr an");
|
||||||
System.out.println("(0 für Anzeige der Produktinformationen, " + (shop.lager.size() + 1) + " um zum Hauptmenü zurückzukehren)");
|
System.out.println("(0 für Anzeige der Produktinformationen, " + (shop.lager.size() + 1) + " um zum Hauptmenü zurückzukehren)");
|
||||||
|
|
|
||||||
|
|
@ -46,13 +46,13 @@ public class OnlineShop {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void produkteListe() throws FileNotFoundException {
|
public void produkteListe(){
|
||||||
for (int i = 0; i < lager.size(); i++) {
|
for (int i = 0; i < lager.size(); i++) {
|
||||||
System.out.println(i+1 + ". " + lager.get(i).getName());
|
System.out.println(i+1 + ". " + lager.get(i).getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void produkteInformationen() throws FileNotFoundException {
|
public void produkteInformationen() {
|
||||||
String[] produkt = new String[lager.size()];
|
String[] produkt = new String[lager.size()];
|
||||||
System.out.println("ProdId,Name,TransportGewicht,Netto,MwStSatz,Lagerbestand\n");
|
System.out.println("ProdId,Name,TransportGewicht,Netto,MwStSatz,Lagerbestand\n");
|
||||||
for (int i = 0; i < lager.size(); i++) {
|
for (int i = 0; i < lager.size(); i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue