Samorokimetal

Main 22.11.2020

Nov 22nd, 2020 (edited)
378
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.         Property property1 = new Property(1, "Abc", "Botevgrad", 100000);
  4.         Property property2 = new Property(2, "Def", "Sofia", 140000);
  5.         Property property3 = new Property(3, "Ghi", "Pravets", 85000);
  6.         Property property4 = new Property(4, "Jkl", "Etropole", 75000);
  7.  
  8.         PropertiesBook book1 = new PropertiesBook();
  9.         book1.addProperty(property1);
  10.         book1.addProperty(property2);
  11.         book1.addProperty(property3);
  12.         book1.addProperty(property4);
  13.  
  14.         System.out.println("Cheapest property: " + book1.findCheapestProperty());
  15.     }
  16. }
RAW Paste Data