Answer: Compiler
Explanation:
The exception classes are basically occur during the compilation of the program in the system. The exception is the event which disrupt the flow of the instruction.
It basically provide a way to transfer the control in the one part of the program to another program. The exception class is also known as run-time exception that basically indicate the condition in the class application.
All the other options are not in the form of packages in the exception class. Therefore, compiler is the correct option.
Answer:
Answer is in the provided screenshot! This was a lot of fun to make!
Explanation:
We need to create a new Array which has to be the size of amount * original - as we now that we are going to have that many elements. Then we just iterate through all the values of the new array and set them equal to each of the elements in order.
Ignore the code in my main function, this was to print to the terminal the working code - as you can see from the output at the bottom!