Esempio n. 1
0
  public static void main(String[] args) {

    System.out.println();
    Scanner inputSize = new Scanner(System.in);
    System.out.println("Pls enter array length: ");
    int size = inputSize.nextInt();
    if (size < 5) {
      System.out.println("More than 5 pls..");
      return;
    } else {

      String[] foodThemeArr = {
        "Chinese",
        "Ukrainian",
        "Cosmic",
        "Vegan",
        "Pre-historical",
        "Spanish",
        "Mexican",
        "Greek",
        "Moon",
        "Diet",
        "Indian",
        "Italian",
        "British",
        "Insectivorous",
        "Protoss",
        "Zerg",
        "Azeroth"
      };

      String[] workingHoursArr = {
        "Midnight",
        "dawn",
        "dusk on Alpha Centauri",
        "11:53 PM",
        "the Morning comes",
        "22:30",
        "05:49 AM",
        "03:33 AM",
        "08:12 AM",
        "the end of the World",
        "Friday",
        "tomorrow",
        "some day, u'll know when",
        "some day",
        "Saturday",
        "eating spree",
        "... whatever"
      };

      String[] citiesArr = {
        "in Lemberg",
        "on the Mars",
        "on the Sun",
        "in outer space",
        "in Arkham",
        "in Gotham",
        "in Eldorado",
        "in SinCity",
        "in Woodstock",
        "on the Orbital Station",
        "in Stormwind",
        "in Dun Morogh",
        "in Khaz Modan",
        "on the Moon",
        "beneath Aerie Peak",
        "in Hobbiton",
        "on Aiur"
      };

      Building[] arr = Auxiliary.buildEmUp(size, citiesArr, workingHoursArr, foodThemeArr);

      Auxiliary.giants(arr);
      System.out.println();

      arr[0].teleportAway();
      System.out.println();

      arr[0].elevatorGoesDown();
      System.out.println();

      arr[0].pushTheSkyAway();
      System.out.println();

      arr[0].elevatorGoesDown();
      arr[0].elevatorStopped();

      Building.troll();
    }
  }