Introduction - If you have any usage issues, please Google them yourself
Write a class Army, representing an army, which has an attribute Weapon array w (used to store all the weapons that the army has). This class also provides a construction method that defines the number of maximum weapons that the class can have by passing a int type parameter in the construction method, and initializes the number with this size. Group w. This class also provides a method called addWeapon (Weapon WA), which means the weapon represented by parameter Wa is added to the array w. In this class, we also define two ways, attackAll (), to attack all weapons in W array, and moveAll () to move all mobile weapons in W array.