Article / Updated 10-13-2017
To write the Java program you see below, you need a loop — a loop that repeatedly asks the user whether the importantData.txt file should be deleted. The loop continues to ask until the user gives a meaningful response./** DISCLAIMER: Neither the author nor John Wiley & Sons,* Inc., nor anyone else even remotely connected with the* creation of this book, assumes any responsibility* for any damage of any kind due to the use of this code,* or the use of any work derived from this code,* including any work created partially or in full by* the reader.