/** * Get the barcode of a product given it's name * * @param name The name of the product to get the barcode of * @return The barcode of the product with the name specified. */ public static String getProductBarCode(String name) { return itemDatabase.getBarcode(name).orElse("Item Not Found"); }