-
Notifications
You must be signed in to change notification settings - Fork 6
Stage #6 Processing coffee machine states #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
swsms
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good solution, congratulations!
src/coffeeMachine/Main.java
Outdated
| System.out.printf("%d ml of milk %n", cups*MILK); | ||
| System.out.printf("%d g of coffee beans %n", cups*BEANS); | ||
|
|
||
| CoffeeMachine machine = new CoffeeMachine.Builder(WATER_CONSUMPTION, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is an interesting idea to apply Builder in this project!
src/coffeeMachine/Main.java
Outdated
| int capacity = machine.getBrewCapacity(); | ||
|
|
||
| if (capacity > cups) { | ||
| System.out.printf("Yes, I can make that amount of coffee (and even %d more than that) %n", capacity-cups); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are only two new spaces before the line
| } catch (Exception e) { | ||
| System.out.println(e.getMessage()); | ||
| } | ||
| }//eof while |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it important to add a comment with eof of a construction? It will be not good in production Java projects. If you want to know about eof after a '}' you may install a plugin for your IDE. Not all members of your team may need to see it.
No description provided.