9 ♦Syntax for factories?35

Warm ups:

  • Improve/debug the code on the back of this card.

Writing Challenge: Make a class called RandomFactory with a static method randomLocation(int maxX, int maxY) to return a Location with x and y values between 0 and the given maximums. Also write a static method randomMonsters(int num, int maxX, int maxY) to return a Monster[] of num monsters at random locations.