Lab #5 Section 1 – Chapter 9 Write a program that reads a whole number and catches InputMismatchException if this number is not an integer. Print out “Enter a whole number.” If number is not an...

i need help


Lab #5 Section 1 – Chapter 9 Write a program that reads a whole number and catches InputMismatchException if this number is not an integer. Print out “Enter a whole number.” If number is not an integer Print out “Not a correctly written whole number” Print out to the file “Try again.” If number is an integer Print out to the file “You entered” + ________________________ Section 2 – Chapter 10 Write a program that writes to a file stuff.txt and catches FileNotFoundException if it is not found. The program outputs: Print out to the file “Writing to file.” Print out to the file “The quick brown fox.” Print out to the file “jumped over the lazy dog.” Print out to the file “End of program.”
Oct 26, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here