Menu
support@authoritypapers.com
+1(805) 568 7317

using the example made in the the book java how to program earlyobjects 10th edition 4952045

Using the example made in the the book Java How to program EarlyObjects 10th Edition, Fig. 15.2, make a program that asks for adirectory, read each file in that directory, add the bytes of eachfile, and report the contents of that directory with the size ofeach file and the total of that summation. You must indicate withan error message if what you entered is not a directory. Use thecommand prompts to execute the program. See an example: —— sample OUTPUT # 1 —————– C: Users Nate Documents NetBeansProjects Deitel ch15 fig15_02> java FileAndDirectoryInfo Enter directory name: C: Users Nate Documents NetBeansProjects Deitel ch15 fig15_02 Directory contents: C: Users Nate Documents NetBeansProjects Deitel ch15 fig15_02 FileAndDirectoryInfo.class, size: 2,645 C: Users Nate Documents NetBeansProjects Deitel ch15 fig15_02 FileAndDirectoryInfo.java, size: 3,101 C: Users Nate Documents NetBeansProjects Deitel ch15 fig15_02 FileAndDirectoryInfo.java ~, size: 2,960 Total bytes: 8,706 ——sample OUTPUT # 2 —————– C: Users Nate Documents NetBeansProjects Deitel ch15 fig15_02> java FileAndDirectoryInfo Enter directory name: FileAndDirectoryInfo.java Error: Please enter a valid directory name! Attached

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"GET15"

Order Now