subject

You coded the following class:

try

{

Scanner file = new Scanner( new File("data. txt"));

String s = file. nextLine();

}
catch (ArithmeticException ae)

{

System. out. println(ae. getMessage());

}

Explain what the problem is and how to fix it.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:00
Marissa is a high school student who wants to be a hydroelectric production manager. she talks to her guidance counselor about her education path, and the counselor says that she needs to get an associate’s degree from a four-year college and will follow that with significant on-the-job training. what error did the counselor make while advising marissa? marissa will not have on-the-job training. marissa also needs a three-year apprenticeship. marissa only needs to attend a two-year college. marissa needs a bachelor’s degree.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
You know the right answer?
You coded the following class:

try

{

Scanner file = new Scanner(...
Questions
question
Mathematics, 30.04.2021 07:50
question
World Languages, 30.04.2021 07:50
question
Mathematics, 30.04.2021 07:50
question
Mathematics, 30.04.2021 07:50
question
Mathematics, 30.04.2021 07:50
question
History, 30.04.2021 07:50
question
Mathematics, 30.04.2021 07:50
Questions on the website: 13722363