Samorokimetal

Main 19.11.2020

Nov 22nd, 2020 (edited)
484
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Main {
  2.     public static void main(String[] args) {
  3.         Recipe recipe1 = new Recipe("Supa topcheta", null, 9, 90, 3.5);
  4.         Recipe recipe2 = new Recipe("Tarator", null, 6, 15, 3);
  5.         Recipe recipe3 = new Recipe("Bob", null, 8, 120, 2);
  6.  
  7.         Recipe_Book book1 = new Recipe_Book();
  8.         book1.addRecipe(recipe1);
  9.         book1.addRecipe(recipe2);
  10.         book1.addRecipe(recipe3);
  11.         System.out.println("Cheapest recipe: " + book1.findCheapestRecipe());
  12.         System.out.println("Fastest recipe: " + book1.findFastestRecipe());
  13.     }
  14. }
RAW Paste Data