1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Deffense [45]
3 years ago
5

Modify the solution to PP 11.1 such that it catches and handles the exception if it is thrown. Handle the exception by printing

an appropriate message, and then continue processing more strings.
Computers and Technology
1 answer:
Svetradugi [14.3K]3 years ago
3 0

Answer:

Explanation:

The following code is written in Java. After finding the PP 11.1 file online I added the try/catch to the code as requested by the question. The program takes the input from the user, checks it's length, and if it contains more than 20 characters it throws the exception. This exception states that "the string has more than 20 characters" and then continues processing more strings until the user enters "DONE". The program has been tested and the output can be seen in the attached image below. Due to technical difficulties I have added the code as a txt file below.

You might be interested in
What is the process called when programmers look for and fix errors in code?
AveGali [126]

Answer:

d

Explanation:

7 0
3 years ago
Read 2 more answers
Please help will mark brainiest
frozen [14]
Answer community shares a cloud among organizations with similar computing needs
8 0
4 years ago
Select all that apply
My name is Ann [436]

Answer:

social change and cultural change i hope this help you

8 0
3 years ago
PLEASE HELP!!!!!!!!!!!! IT'S VERY URGENT!!!!!!!!! Social Networks websites put the responsibility for intellectual property?
Tasya [4]
I think all the answers you picked were correct except the last one I think is B because even though the disc is copyrighted it's not considered intellectual property
7 0
3 years ago
Read 2 more answers
What does a close observation of the painting reveal? the people's enjoyment of fishing as a pastime the people's reliance on th
Lana71 [14]
The peoples reliance on the sea industry
6 0
4 years ago
Read 2 more answers
Other questions:
  • So im leavin brainly....goodbye. (❤´艸`❤)
    13·2 answers
  • Who controls communication ethics?
    13·1 answer
  • Which of the given original work is protected by the copyright law
    14·2 answers
  • One factor affecting digital camera quality is the number of pixels, measured in ____, used to store the data for each image.
    8·2 answers
  • WILL UPVOTE <3
    9·1 answer
  • PLEASE HELP ASAP!!
    13·1 answer
  • How would you convert an integer value to a float value in Python?
    10·1 answer
  • What does a blue painted curb mean?
    12·1 answer
  • 1) a program that is designed to perform only one task.
    11·1 answer
  • The result of processing data ​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!