Computers and Technology

Write a program that will search a text file of strings representing numbers of type int and will write the largest and the smallest numbers to the screen.

include appropriate error handling in case a line contains more than one int or it contains a string.

wrap all the work you are doing with the file in a try/catch/finally block with appropriate "catch" sections; the finally block will be where you close your file object (if desired, look this up online for more information regarding "finally" and when it is executed, specifically that it is executed in case of success or failure of the entire try block).

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 15:30, jerry1496
If you want to delete an entire word at a time, which key should you press along with the backspace or delete key?
Answers: 1
image
Computers and Technology, 25.06.2019 00:30, kukisbae
How do i take a screenshot on a laptop?
Answers: 2
image
Computers and Technology, 25.06.2019 02:00, Aaraar
Feedback is one of the basic elements games have in common true false
Answers: 2
image
Computers and Technology, 25.06.2019 03:00, achewitt3965
What judgment would you make about open systems interconnect? not useful that it is a technology that it is a model that it does not pertain to technology
Answers: 1
Do you know the correct answer?
Write a program that will search a text file of strings representing numbers of type int and will wr...

Questions in other subjects: