src/Model/Product.java
// Exception handling for entered field data types
Exception handling for entered field data types
Exception handling for entered field data types
private static boolean productPriceDataTypeException(String prodPrice) {
        try {
            Double.parseDouble(prodPrice);
            return true;
        } catch (NumberFormatException e) {
            return false;
        }
    }
private static boolean productPriceDataTypeException ( String prodPrice ) { try { Double . parseDouble ( prodPrice ) ; return true ; } catch ( NumberFormatException e ) { return false ; } }
Exception handling for entered field data types
Exception handling for entered field data types