1. stub is usually used for temporary substitute for the code that yet to be written. 2. it removes the last entry in the array. Solution 1. stub is usually used for temporary substitute for the code that yet to be written. 2. it removes the last entry in the array..