Write an application program that prompts the user to enter a number (a number only, error check for numerals only), subtract 50 from that number, and then declare an array using the calculated size. If you attempt to declare an array whose computed size is a negative, the program should throw an exception. Use a catch block to catch the exception if there is one, and then display the associated message.
Please help with the .java and .class files.... :-)© BrainMass Inc. brainmass.com March 4, 2021, 8:04 pm ad1c9bdddf
Attached files contain an example code of what you want to ...
An application program that prompts the user to enter a number is shown.