Entfernung aller unnötigen FNF-Exceptions
parent
a65e7d18fe
commit
f3b27e37ce
|
|
@ -14,7 +14,7 @@ public class ShopTUI {
|
|||
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): ");
|
||||
|
||||
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");
|
||||
shop.produkteListe();
|
||||
}
|
||||
|
||||
public static void produktsuche() throws FileNotFoundException {
|
||||
public static void produktsuche() {
|
||||
while (true) {
|
||||
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)");
|
||||
|
|
|
|||
|
|
@ -46,13 +46,13 @@ public class OnlineShop {
|
|||
|
||||
}
|
||||
|
||||
public void produkteListe() throws FileNotFoundException {
|
||||
public void produkteListe(){
|
||||
for (int i = 0; i < lager.size(); i++) {
|
||||
System.out.println(i+1 + ". " + lager.get(i).getName());
|
||||
}
|
||||
}
|
||||
|
||||
public void produkteInformationen() throws FileNotFoundException {
|
||||
public void produkteInformationen() {
|
||||
String[] produkt = new String[lager.size()];
|
||||
System.out.println("ProdId,Name,TransportGewicht,Netto,MwStSatz,Lagerbestand\n");
|
||||
for (int i = 0; i < lager.size(); i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue