Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- Property property1 = new Property(1, "Abc", "Botevgrad", 100000);
- Property property2 = new Property(2, "Def", "Sofia", 140000);
- Property property3 = new Property(3, "Ghi", "Pravets", 85000);
- Property property4 = new Property(4, "Jkl", "Etropole", 75000);
- PropertiesBook book1 = new PropertiesBook();
- book1.addProperty(property1);
- book1.addProperty(property2);
- book1.addProperty(property3);
- book1.addProperty(property4);
- System.out.println("Cheapest property: " + book1.findCheapestProperty());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement