تم الحل ✓
categoryهندسة الحاسبات
schoolبكالوريوس
event_available2026-07-15
السؤال
Transcribed Image Text:
<terminated> InforObtainerDriver [Java Application] C:\Program
Files\Java\jdk-13.0.2\bin\javaw.exe (Mar 19
Below: a try catch block is used to call the getInput() method
and print out a message via the getMessage method.
Notice that it does not show the thrown Exception,
but only displays a message.
Please enter only alphabetical characters:
Zoom: the online communication platform!
Not all your input is alphabetical.
Below: Use a try catch block to call the getInput method
and display the message from the overloaded constructor
Notice that it shows the thrown Exception and displays the message
This is because I only printed out the Exception object,
and did not call the getMessage method.
Please enter only alphabetical characters:
Zoom, online.
ch11Exception. NotAlpha Exception: Wrong input, go figure...
Below: Call the getAndCheck Input method that will check the input and
insist on you entering a correct input.
Will not stop until you do.
It is not done in a loop here.
It is done inside the method using a try catch block.
Please enter only alphabetical characters:
Zoom, online.
ch11Exception. NotAlpha Exception: Not all your input is alphabetical.
Please enter only alphabetical characters:
Zoom online
ch1lException. NotAlphaException: Not all your input is alphabetical.
Please enter only alphabetical characters:
Zoom online
ch11Exception. NotAlpha Exception: Not all your input is alphabetical.
Please enter only alphabetical characters:
Zoomonline
Zoomonline
Thank you. Good bye for now!
check_circle الجواب — حل مفصل خطوة بخطوة
hourglass_top
🔒
الحل الكامل متاح للمشتركين
اشترك في أرشيف الأسئلة لعرض هذا الحل وآلاف الحلول المفصلة خطوة بخطوة من معلمين معتمدين.