@@ -0,0 +1,139 @@
+package view;
+
+import static exception.Exception.EXCEED_QUANTITY;
+import static exception.Exception.WRONG_INPUT;
+
+import camp.nextstep.edu.missionutils.Console;
+import dto.Status;
+import exception.Exception;
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.time.LocalDate;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.function.Function;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+import store.Application;
+import store.Product;
+import store.Promotion;
+import util.ProductValidator;
+
+public class InputView {
+
+    private static final String WANT_BUY_PRODUCT = "\n구매하실 상품명과 수량을 입력해 주세요. (예: [사이다-2],[감자칩-1])";
+
+    public List<Product> readItem() {
+        return handleRetryOnError(() -> {
+            String[] items = preWorkBuyProduct();
+            List<Product> buyProducts = new ArrayList<>();
+            for (String item : items) {
+                ProductValidator.isValidProductFormat(item);
+                addBuyProduct(item, buyProducts);
+            }
+            return buyProducts;
+        });
+    }
+
+    public String[] preWorkBuyProduct() {
+        System.out.println(WANT_BUY_PRODUCT);
+        String input = Console.readLine().trim();
+        return input.split(",");
+    }
+
+    public void addBuyProduct(String item, List<Product> buyProducts) {
+        String cleanInput = item.replace("[", "").replace("]", "");
+        String[] nameAndQuantity = cleanInput.split("-");
+        String name = nameAndQuantity[0];
+        int quantity = 0;
+        try {
+            quantity = Integer.parseInt(nameAndQuantity[1]);
+        } catch (java.lang.Exception e) {
+            Exception.throwException(EXCEED_QUANTITY);
+        }
+        buyProducts.add(new Product(name, quantity));
+    }
+
+    public <T> List<T> loadItems(String fileName, Function<String, T> mapper) {
+        try (BufferedReader reader = new BufferedReader(
+                new InputStreamReader(Application.class.getClassLoader().getResourceAsStream(fileName)))) {
+            return reader.lines()
+                    .skip(1) // 첫 번째 줄 건너뛰기
+                    .map(mapper)
+                    .collect(Collectors.toList());
+        } catch (IOException e) {
+            throw new RuntimeException("[ERROR] reading file: " + fileName, e);
+        }
+    }
+
+    public List<Product> loadProducts(String fileName) {
+        return loadItems(fileName, line -> {
+            String[] productInfo = line.split(",");
+            int price = Integer.parseInt(productInfo[1]);
+            int quantity = Integer.parseInt(productInfo[2]);
+            String promotion = productInfo[3];
+            if ("null".equals(promotion)) {
+                promotion = null;
+            }
+            return new Product(productInfo[0], price, quantity, promotion);
+        });
+    }
+
+    public List<Promotion> loadPromotions(String fileName) {
+        return loadItems(fileName, line -> {
+            String[] promotionInfo = line.split(",");
+            String name = promotionInfo[0];
+            int buy = Integer.parseInt(promotionInfo[1]);
+            int get = Integer.parseInt(promotionInfo[2]);
+            LocalDate startDate = LocalDate.parse(promotionInfo[3]);
+            LocalDate endDate = LocalDate.parse(promotionInfo[4]);
+            return new Promotion(name, buy, get, startDate, endDate);
+        });
+    }
+
+    public void addPromotion(Product wantBuyProduct, int notBringBonus) {
+        String input = checkInputYorN();
+        if (Status.Y == Status.checkStatusInput(input)) {
+            wantBuyProduct.addQuantity(notBringBonus);
+        }
+    }
+
+    public void promotionApply(Product wantBuyProduct, int notPromotionCount) {
+        String input = checkInputYorN();
+        if (Status.N == Status.checkStatusInput(input)) {
+            wantBuyProduct.subtractQuantity(notPromotionCount);
+        }
+    }
+
+    public Status memberShipApply() {
+        String input = checkInputYorN();
+        return Status.checkStatusInput(input);
+    }
+
+    public String checkInputYorN() {
+        return handleRetryOnError(() -> {
+            String input = Console.readLine().trim();
+            if (!"Y".equalsIgnoreCase(input) && !"N".equalsIgnoreCase(input)) {
+                Exception.throwException(WRONG_INPUT);
+            }
+            return input;
+        });
+    }
+
+    public Status wantContinue() {
+        String input = checkInputYorN();
+        return Status.checkStatusInput(input);
+    }
+
+    public static <T> T handleRetryOnError(Supplier<T> method) {
+        try {
+            return method.get();
+        } catch (IllegalArgumentException e) {
+            OutputView.printMessage(e.getMessage());
+            return handleRetryOnError(method);
+        }
+    }
+
+
+}
\ No newline at end of file

리뷰: 제가 생각했던것은
로직상 저 부분에 들어갈것은 숫자만 가능한데(앞에서 정규식으로 거르고있음)
Integer.parseInt에서 에러가 발생한다면 숫자이기는 숫자인데
int값을 벗어나는 숫자라고 생각했기 때문입니다!!
예외처리가 정확하지 못했던 것 같네요!!
말씀 감사합니다!