public class Main {
static Vector<Chain> chains = new Vector<Chain>();//Check unique name
static Vector<Mall> malls = new Vector<Mall>();//Check unique number
static ExceptionFunctions ex = new ExceptionFunctions();
public static void main(String[] args)
{
try{
malls.add(new Mall("Hilel", 212));
malls.get(0).addShop(new Shop("Shuper", 2));
malls.get(0).addShop(new Shop("George", 42));
malls.add(new Mall("Hasharon", 432));
malls.get(1).addShop(new Shop("Columbus", 12));
malls.get(1).addShop(new Shop("Bastro", 65));
malls.get(1).addShop(new Shop("George", 81));
chains.add(new ClothesChain("Bastro","Moshe"));
chains.get(0).addShop(malls.get(1).getShop(65));
chains.add(new FoodChain("Columbus",3));
chains.get(1).addShop(malls.get(1).getShop(12));
chains.add(new FastFoodChain("George",35,25,1));
chains.get(2).addShop(malls.get(0).getShop(42));
chains.get(2).addShop(malls.get(1).getShop(81));
chains.add(new BookChain("Shuper","C++ programming is fun"));
chains.get(3).addShop(malls.get(0).getShop(2));
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
}