Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Java class named Assignment1. The package name should be assignment1. *Please note the case sensitivity. The class name should start with an uppercase

Create a Java class named Assignment1. The package name should be assignment1. *Please note the case sensitivity.

The class name should start with an uppercase A and the package name should start with a lowercase a. It is to have a main method that calls each of the static methods below

Create a static method named task1 1) Ask the user for a file name (You will automatically add the txt extension to the file name). 2) Ask the user for text content to add to the file. 3) Write or append to the file in Step 1) the text content in Step2)

Create a static method named task2 1) Ask the user for a relative path value. 2) Determine if the relative path exists

a) If not found: i) output to Standard Error an appropriate message and end the program. b) If found: i) Output the count of all files and folders found. This count should include subdirectories. Output a total count, a file count and a directory count.

Can you provide with the detailed explanation of the above answer with video demonstration that it is running

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning PostgreSQL On The Cloud Simplifying Database As A Service On Cloud Platforms

Authors: Baji Shaik ,Avinash Vallarapu

1st Edition

1484234464, 978-1484234464

More Books

Students also viewed these Databases questions