Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onBarcode(final String barcode) {
- if (barcode.isEmpty()) {
- display.displayEmptyBarcodeMessage();
- } else {
- final Price price = catalog.findPrice(barcode);
- if (price == null) {
- display.displayProductNotFoundMessage(barcode);
- } else {
- display.displayPrice(price);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement