package tui; import fassade.OnlineShopSystem; import java.io.FileNotFoundException; import java.util.Scanner; public class TUI { private OnlineShopSystem shop; private Scanner sc; public static void main(String[] args) { try { new TUI(); } catch ( FileNotFoundException e){ // resources/productList.csv System.out.printf("Storage list couldn't be loaded. \n"); System.out.printf("Cancelling. \n\n"); } } public TUI () throws FileNotFoundException { sc = new Scanner(System.in); String filePath = welcomeMessage(); shop = new OnlineShopSystem(filePath); } private String welcomeMessage(){ System.out.println("Welcome to the Bauhaus online shop!"); System.out.print("Please input the product list location: "); return sc.nextLine(); } }