subject

write an application named badsubscript in which you declare an array of 10 first names. write a try block which you prompt the user for an interger and display the name in the requested position. create a catch block that catches the potential thrown when the user enters a number that is out of range. the catch block should also display an error message. save the file as badsubscriptcaught. java

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 11:30
Me dangers of social media and the internetexplain what each means: 1) social media and phones have become an addiction.2) outside people have access to you all the time.3) cyberstalking4) cyberbullying5) catphishing6) viruses7) identity theft8) credit card fraud9) hacking10) money schemes
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
You know the right answer?
write an application named badsubscript in which you declare an array of 10 first names. write a try...
Questions
question
Social Studies, 01.11.2020 09:20
question
Mathematics, 01.11.2020 09:20
question
English, 01.11.2020 09:20
question
English, 01.11.2020 09:30
question
World Languages, 01.11.2020 09:30
question
Mathematics, 01.11.2020 09:30
question
Mathematics, 01.11.2020 09:30
Questions on the website: 13722362