Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- Recipe recipe1 = new Recipe("Supa topcheta", null, 9, 90, 3.5);
- Recipe recipe2 = new Recipe("Tarator", null, 6, 15, 3);
- Recipe recipe3 = new Recipe("Bob", null, 8, 120, 2);
- Recipe_Book book1 = new Recipe_Book();
- book1.addRecipe(recipe1);
- book1.addRecipe(recipe2);
- book1.addRecipe(recipe3);
- System.out.println("Cheapest recipe: " + book1.findCheapestRecipe());
- System.out.println("Fastest recipe: " + book1.findFastestRecipe());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement